mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Don't hit DB for noop replications queries
This commit is contained in:
parent
e0fda29f94
commit
1a815fb04f
5 changed files with 15 additions and 0 deletions
|
@ -221,6 +221,9 @@ class TypingHandler(object):
|
|||
|
||||
def get_all_typing_updates(self, last_id, current_id):
|
||||
# TODO: Work out a way to do this without scanning the entire state.
|
||||
if last_id == current_id:
|
||||
return []
|
||||
|
||||
rows = []
|
||||
for room_id, serial in self._room_serials.items():
|
||||
if last_id < serial and serial <= current_id:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue