summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authorMathieu Velten <mathieuv@matrix.org>2022-09-26 17:33:32 +0200
committerGitHub <noreply@github.com>2022-09-26 17:33:32 +0200
commit41461fd4d63e55d1812f0688ca58a88e7200a1d7 (patch)
treeb7e9300d08b8725a05aad841822e354ba3a562fb /tests/handlers
parentSimplify cache invalidation after event persist txn (#13796) (diff)
downloadsynapse-41461fd4d63e55d1812f0688ca58a88e7200a1d7.tar.xz
typing: check origin server of typing event against room's servers (#13830)
This is also using the partial state approximation if needed so we do
not block here during a fast join.

Signed-off-by: Mathieu Velten <mathieuv@matrix.org>
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/test_typing.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/handlers/test_typing.py b/tests/handlers/test_typing.py
index 1a247f12e8..9c821b3042 100644
--- a/tests/handlers/test_typing.py
+++ b/tests/handlers/test_typing.py
@@ -138,6 +138,10 @@ class TypingNotificationsTestCase(unittest.HomeserverTestCase):
             get_current_hosts_in_room
         )
 
+        hs.get_storage_controllers().state.get_current_hosts_in_room_or_partial_state_approximation = (
+            get_current_hosts_in_room
+        )
+
         async def get_users_in_room(room_id: str):
             return {str(u) for u in self.room_members}