mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:44:49 -04:00
Fix users claimed non-exclusively by an app service don't get notifications #2211
This commit is contained in:
parent
c1935f0a41
commit
328378f9cb
2 changed files with 6 additions and 3 deletions
|
@ -39,12 +39,15 @@ class ApplicationServiceStore(SQLBaseStore):
|
|||
def get_app_services(self):
|
||||
return self.services_cache
|
||||
|
||||
def get_if_app_services_interested_in_user(self, user_id):
|
||||
def get_if_app_services_interested_in_user(self, user_id, exclusive=False):
|
||||
"""Check if the user is one associated with an app service
|
||||
"""
|
||||
for service in self.services_cache:
|
||||
if service.is_interested_in_user(user_id):
|
||||
return True
|
||||
if exclusive:
|
||||
return service.is_exclusive_user(user_id)
|
||||
else:
|
||||
return True
|
||||
return False
|
||||
|
||||
def get_app_service_by_user_id(self, user_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue