mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-20 02:24:54 +03:00
grab sufficient hero material
This commit is contained in:
parent
c39754aac2
commit
1b04557e9e
1 changed files with 2 additions and 1 deletions
|
@ -128,7 +128,8 @@ class RoomMemberWorkerStore(EventsWorkerStore):
|
||||||
" WHERE c.type = 'm.room.member' AND c.room_id = ? limit ?"
|
" 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:
|
for r in txn:
|
||||||
summary = res.get(to_ascii(r[1]))
|
summary = res.get(to_ascii(r[1]))
|
||||||
members = summary.members
|
members = summary.members
|
||||||
|
|
Loading…
Reference in a new issue