Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 25488fa

Browse files
committed
Update old references to get_new_messages_for_device
1 parent 822e92a commit 25488fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

synapse/handlers/appservice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ async def _get_to_device_messages(
510510
return []
511511

512512
# Retrieve the to-device messages for each user
513-
recipient_device_to_messages = await self.store.get_new_messages(
513+
recipient_device_to_messages = await self.store.get_messages_for_user_devices(
514514
users_appservice_is_interested_in,
515515
from_key,
516516
new_token,

synapse/handlers/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ async def _generate_sync_entry_for_to_device(
13361336
since_stream_id = int(sync_result_builder.since_token.to_device_key)
13371337

13381338
if since_stream_id != int(now_token.to_device_key):
1339-
messages, stream_id = await self.store.get_new_messages_for_device(
1339+
messages, stream_id = await self.store.get_messages_for_device(
13401340
user_id, device_id, since_stream_id, now_token.to_device_key
13411341
)
13421342

0 commit comments

Comments
 (0)