diff options
author | Mark Haines <mjark@negativecurvature.net> | 2015-05-22 16:04:22 +0100 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2015-05-22 16:04:22 +0100 |
commit | 5d53c143423ea58567f65231b8e98f92499b828c (patch) | |
tree | 53761625ee318ccfd04ae6a9408aa2daee853197 /synapse/appservice/__init__.py | |
parent | Merge pull request #161 from matrix-org/erikj/txn_logging_fix (diff) | |
parent | Remove unused import (diff) | |
download | synapse-5d53c143423ea58567f65231b8e98f92499b828c.tar.xz |
Merge pull request #160 from matrix-org/markjh/appservice_performance
Make the appservice use 'users_in_room' rather than get_room_members …
Diffstat (limited to 'synapse/appservice/__init__.py')
-rw-r--r-- | synapse/appservice/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/appservice/__init__.py b/synapse/appservice/__init__.py index 63a18b802b..e3ca45de83 100644 --- a/synapse/appservice/__init__.py +++ b/synapse/appservice/__init__.py @@ -148,8 +148,8 @@ class ApplicationService(object): and self.is_interested_in_user(event.state_key)): return True # check joined member events - for member in member_list: - if self.is_interested_in_user(member.state_key): + for user_id in member_list: + if self.is_interested_in_user(user_id): return True return False @@ -173,7 +173,7 @@ class ApplicationService(object): restrict_to(str): The namespace to restrict regex tests to. aliases_for_event(list): A list of all the known room aliases for this event. - member_list(list): A list of all joined room members in this room. + member_list(list): A list of all joined user_ids in this room. Returns: bool: True if this service would like to know about this event. """ |