summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-23 14:12:47 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-23 14:12:47 +0100
commitd2b3c47ba31fec1df4d06f1c2aa7ed29e309498d (patch)
tree7a80e170fdec14dfd3e78cd4984ff39c89beb48a /synapse/rest
parentMerge commit 'd9f1dccba' into anoa/dinsic_release_1_31_0 (diff)
parentClean up the user directory sample config section (#9385) (diff)
downloadsynapse-d2b3c47ba31fec1df4d06f1c2aa7ed29e309498d.tar.xz
Merge commit 'e22b71810' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v2_alpha/sendtodevice.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/rest/client/v2_alpha/sendtodevice.py b/synapse/rest/client/v2_alpha/sendtodevice.py
index a3dee14ed4..79c1b526ee 100644
--- a/synapse/rest/client/v2_alpha/sendtodevice.py
+++ b/synapse/rest/client/v2_alpha/sendtodevice.py
@@ -56,10 +56,8 @@ class SendToDeviceRestServlet(servlet.RestServlet):
         content = parse_json_object_from_request(request)
         assert_params_in_dict(content, ("messages",))
 
-        sender_user_id = requester.user.to_string()
-
         await self.device_message_handler.send_device_message(
-            sender_user_id, message_type, content["messages"]
+            requester, message_type, content["messages"]
         )
 
         response = (200, {})  # type: Tuple[int, dict]