mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-14 08:50:43 -05:00
Fix thinko whereby events *for the AS specifically* were not passed on.
This was caused by not explicitly checking the service.sender field. This has now been fixed and a regression test has been added.
This commit is contained in:
parent
9a506a191a
commit
09cbff174a
2 changed files with 17 additions and 1 deletions
|
|
@ -199,7 +199,10 @@ class ApplicationService(object):
|
|||
return self._matches_user(event, member_list)
|
||||
|
||||
def is_interested_in_user(self, user_id):
|
||||
return self._matches_regex(user_id, ApplicationService.NS_USERS)
|
||||
return (
|
||||
self._matches_regex(user_id, ApplicationService.NS_USERS)
|
||||
or user_id == self.sender
|
||||
)
|
||||
|
||||
def is_interested_in_alias(self, alias):
|
||||
return self._matches_regex(alias, ApplicationService.NS_ALIASES)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue