mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-22 13:12:30 +00:00
Don't loop over all rooms ever in typing.get_new_events_for_user
This commit is contained in:
1 parent
90fde4b8d7
commit
f4d552589e
1 file changed
+2
-2
@@ -260,8 +260,8 @@ class TypingNotificationEventSource(object):
|
||||
)
|
||||
|
||||
events = []
|
||||
for room_id in handler._room_serials:
|
||||
if room_id not in joined_room_ids:
|
||||
for room_id in joined_room_ids:
|
||||
if room_id not in handler._room_serials:
|
||||
continue
|
||||
if handler._room_serials[room_id] <= from_key:
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user