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

Commit

Permalink
Update old references to get_new_messages_for_device
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Jan 25, 2022
1 parent 822e92a commit 25488fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synapse/handlers/appservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ async def _get_to_device_messages(
return []

# Retrieve the to-device messages for each user
recipient_device_to_messages = await self.store.get_new_messages(
recipient_device_to_messages = await self.store.get_messages_for_user_devices(
users_appservice_is_interested_in,
from_key,
new_token,
Expand Down
2 changes: 1 addition & 1 deletion synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ async def _generate_sync_entry_for_to_device(
since_stream_id = int(sync_result_builder.since_token.to_device_key)

if since_stream_id != int(now_token.to_device_key):
messages, stream_id = await self.store.get_new_messages_for_device(
messages, stream_id = await self.store.get_messages_for_device(
user_id, device_id, since_stream_id, now_token.to_device_key
)

Expand Down

0 comments on commit 25488fa

Please sign in to comment.