Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit de1f8de

Browse files
authored
Ensure the user ID is serialized in the payload instead of used as an instance name. (#9130)
1 parent 883d4e6 commit de1f8de

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/9130.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add experimental support for handling and persistence of to-device messages to happen on worker processes.

synapse/handlers/devicemessage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ async def _check_for_unknown_devices(
163163
await self.store.mark_remote_user_device_cache_as_stale(sender_user_id)
164164

165165
# Immediately attempt a resync in the background
166-
run_in_background(self._user_device_resync, sender_user_id)
166+
run_in_background(self._user_device_resync, user_id=sender_user_id)
167167

168168
async def send_device_message(
169169
self,

0 commit comments

Comments
 (0)