mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 22:29:24 -05:00
Return the current stream position from add_messages_to_device_inbox
This commit is contained in:
parent
1aa3e1d287
commit
a662252758
@ -33,7 +33,8 @@ class DeviceInboxStore(SQLBaseStore):
|
||||
messages_by_user_and_device(dict):
|
||||
Dictionary of user_id to device_id to message.
|
||||
Returns:
|
||||
A deferred that resolves when the messages have been inserted.
|
||||
A deferred stream_id that resolves when the messages have been
|
||||
inserted.
|
||||
"""
|
||||
|
||||
def select_devices_txn(txn, user_id, devices):
|
||||
@ -81,6 +82,8 @@ class DeviceInboxStore(SQLBaseStore):
|
||||
stream_id
|
||||
)
|
||||
|
||||
defer.returnValue(self._device_inbox_id_gen.get_current_token())
|
||||
|
||||
def get_new_messages_for_device(
|
||||
self, user_id, device_id, current_stream_id, limit=100
|
||||
):
|
||||
|
Loading…
Reference in New Issue
Block a user