We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 113afba + c94a6d1 commit fc643adCopy full SHA for fc643ad
ex_app/lib/all_tools/context_chat.py
@@ -35,4 +35,5 @@ def get_category_name():
35
return "Context chat"
36
37
def is_available(nc: Nextcloud):
38
- return 'context_chat' in nc.apps.get_list()
+ tasktypes = nc.ocs('GET', '/ocs/v2.php/taskprocessing/tasktypes')['types'].keys()
39
+ return 'context_chat:context_chat' in tasktypes
ex_app/lib/all_tools/mail.py
@@ -67,4 +67,8 @@ def get_category_name():
67
return "Mail"
68
69
70
- return 'mail' in nc.apps.get_list()
+ try:
71
+ res = nc.ocs('GET', '/ocs/v2.php/apps/mail/account/list')
72
+ except:
73
+ return False
74
+ return True
0 commit comments