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

Add count of one time keys to sync stream #2237

Merged
merged 5 commits into from
May 23, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions synapse/storage/end_to_end_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ def _claim_e2e_one_time_keys(txn):
txn.call_after(
self.count_e2e_one_time_keys.invalidate, (user_id, device_id,)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now redundant?

)
self._invalidate_cache_and_stream(
txn, self.count_e2e_one_time_keys, (user_id, device_id,)
)
return result
return self.runInteraction(
"claim_e2e_one_time_keys", _claim_e2e_one_time_keys
Expand Down