summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-09-08 00:08:35 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-09-08 00:08:35 +0100
commit1b04557e9e4e71abfe794627761061ba90419a18 (patch)
tree63da88130e02a49a6c5cbbdf9eea7af71f5fd02e
parentswitch to named tuple (diff)
downloadsynapse-1b04557e9e4e71abfe794627761061ba90419a18.tar.xz
grab sufficient hero material
-rw-r--r--synapse/storage/roommember.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index c6a22ff3d5..6de1431488 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -128,7 +128,8 @@ class RoomMemberWorkerStore(EventsWorkerStore):
                 " WHERE c.type = 'm.room.member' AND c.room_id = ? limit ?"
             )
 
-            txn.execute(sql, (room_id, 5))
+            # 6 is 5 (number of heroes) plus 1, in case one of them is the calling user.
+            txn.execute(sql, (room_id, 6))
             for r in txn:
                 summary = res.get(to_ascii(r[1]))
                 members = summary.members