mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Implement presence event source. Change the way the notifier indexes listeners
This commit is contained in:
parent
67c5f89244
commit
bd16b93e8f
5 changed files with 107 additions and 80 deletions
|
@ -50,7 +50,12 @@ class EventStreamHandler(BaseHandler):
|
|||
if pagin_config.from_token is None:
|
||||
pagin_config.from_token = None
|
||||
|
||||
events, tokens = yield self.notifier.get_events_for(auth_user, pagin_config, timeout)
|
||||
rm_handler = self.hs.get_handlers().room_member_handler
|
||||
room_ids = yield rm_handler.get_rooms_for_user(auth_user)
|
||||
|
||||
events, tokens = yield self.notifier.get_events_for(
|
||||
auth_user, room_ids, pagin_config, timeout
|
||||
)
|
||||
|
||||
chunks = [
|
||||
e.get_dict() if isinstance(e, SynapseEvent) else e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue