Fix up the calls to the notifier for device messages

pull/1062/head
Mark Haines 2016-09-01 18:08:40 +01:00
parent a662252758
commit 7ed5acacf4
2 changed files with 4 additions and 1 deletions

View File

@ -399,6 +399,9 @@ class SynchrotronServer(HomeServer):
notify_from_stream(
result, "typing", "typing_key", room="room_id"
)
notify_from_stream(
result, "to_device", "to_device_key", user="user_id"
)
while True:
try:

View File

@ -78,7 +78,7 @@ class SendToDeviceRestServlet(servlet.RestServlet):
stream_id = yield self.store.add_messages_to_device_inbox(local_messages)
self.notifier.on_new_event(
"to_device", stream_id, users=local_messages.keys()
"to_device_key", stream_id, users=local_messages.keys()
)
response = (200, {})