From eacd7f1f3e3b4c96e44f5d38c3c8bc3539a0927f Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 4 Apr 2020 07:41:06 -0400 Subject: [PATCH] Get only 1 event of each kind for rooms on start --- src/backend/matrix_client.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/backend/matrix_client.py b/src/backend/matrix_client.py index 4cfa7874..87f3d925 100644 --- a/src/backend/matrix_client.py +++ b/src/backend/matrix_client.py @@ -89,17 +89,27 @@ class MatrixClient(nio.AsyncClient): http_s_url = re.compile(r"^https?://") server_filter = { + "presence": { + "limit": 1, + }, + "account_data": { + "limit": 1, + }, "room": { "ephemeral": { + "limit": 1, "lazy_load_members": True, }, "state": { + "limit": 1, "lazy_load_members": True, }, "timeline": { + "limit": 1, "lazy_load_members": True, }, "account_data": { + "limit": 1, "lazy_load_members": True, }, },