Skip to content
Snippets Groups Projects
Unverified Commit 55113dd5 authored by Andrew Morgan's avatar Andrew Morgan Committed by GitHub
Browse files

Notify users, rather than rooms, of device list updates (#11905)

parent 63c46349
No related branches found
No related tags found
No related merge requests found
Preparation to support sending device list updates to application services.
\ No newline at end of file
......@@ -495,13 +495,11 @@ class DeviceHandler(DeviceWorkerHandler):
"Notifying about update %r/%r, ID: %r", user_id, device_id, position
)
room_ids = await self.store.get_rooms_for_user(user_id)
# specify the user ID too since the user should always get their own device list
# updates, even if they aren't in any rooms.
self.notifier.on_new_event(
"device_list_key", position, users=[user_id], rooms=room_ids
)
users_to_notify = users_who_share_room.union({user_id})
self.notifier.on_new_event("device_list_key", position, users=users_to_notify)
if hosts:
logger.info(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment