summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2020-08-24 14:13:53 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2020-08-24 14:13:53 +0100
commitf101e0e3a406b08622991fdb88c379bfe45d926c (patch)
tree36623cc6ec04cf48d84b9dc93099230e3445283a
parentChangelog changes (diff)
downloadsynapse-github/rei/lpnet.tar.xz
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
Diffstat (limited to '')
-rw-r--r--synapse/storage/databases/main/roommember.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/synapse/storage/databases/main/roommember.py b/synapse/storage/databases/main/roommember.py
index b2fcfc9bfe..b1283fff20 100644
--- a/synapse/storage/databases/main/roommember.py
+++ b/synapse/storage/databases/main/roommember.py
@@ -221,10 +221,14 @@ class RoomMemberWorkerStore(EventsWorkerStore):
                     GROUP BY m.membership
                 """
 
-            txn.execute(sql, (room_id,))
+            # rei tmp
+            #txn.execute(sql, (room_id,))
+            #res = {}
+            #for count, membership in txn:
+            #    summary = res.setdefault(membership, MemberSummary([], count))
+
             res = {}
-            for count, membership in txn:
-                summary = res.setdefault(membership, MemberSummary([], count))
+            summary = res.setdefault("join", MemberSummary([], 42))
 
             # we order by membership and then fairly arbitrarily by event_id so
             # heroes are consistent