Ensure the user ID is serialized in the payload instead of used as an instance name. (#9130)

This commit is contained in:
Patrick Cloke
2021-01-18 11:08:26 +00:00
committed by GitHub
parent 883d4e6f2b
commit de1f8de319
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Add experimental support for handling and persistence of to-device messages to happen on worker processes.
+1 -1
View File
@@ -163,7 +163,7 @@ class DeviceMessageHandler:
await self.store.mark_remote_user_device_cache_as_stale(sender_user_id)
# Immediately attempt a resync in the background
run_in_background(self._user_device_resync, sender_user_id)
run_in_background(self._user_device_resync, user_id=sender_user_id)
async def send_device_message(
self,