mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-03-02 04:29:11 -05:00
Merge pull request #1062 from matrix-org/markjh/direct_to_device_synchrotron
Fix up the calls to the notifier for device messages
This commit is contained in:
commit
2aa39db681
@ -399,6 +399,9 @@ class SynchrotronServer(HomeServer):
|
|||||||
notify_from_stream(
|
notify_from_stream(
|
||||||
result, "typing", "typing_key", room="room_id"
|
result, "typing", "typing_key", room="room_id"
|
||||||
)
|
)
|
||||||
|
notify_from_stream(
|
||||||
|
result, "to_device", "to_device_key", user="user_id"
|
||||||
|
)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
@ -78,7 +78,7 @@ class SendToDeviceRestServlet(servlet.RestServlet):
|
|||||||
stream_id = yield self.store.add_messages_to_device_inbox(local_messages)
|
stream_id = yield self.store.add_messages_to_device_inbox(local_messages)
|
||||||
|
|
||||||
self.notifier.on_new_event(
|
self.notifier.on_new_event(
|
||||||
"to_device", stream_id, users=local_messages.keys()
|
"to_device_key", stream_id, users=local_messages.keys()
|
||||||
)
|
)
|
||||||
|
|
||||||
response = (200, {})
|
response = (200, {})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user