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 06:08:26 -05:00 committed by GitHub
parent 883d4e6f2b
commit de1f8de319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/9130.feature Normal file
View File

@ -0,0 +1 @@
Add experimental support for handling and persistence of to-device messages to happen on worker processes.

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,