mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-26 20:22:22 +00:00
Fix initial sync
This commit is contained in:
parent
47d9848dc4
commit
069ae2df12
@ -1085,7 +1085,15 @@ class GroupServerStore(SQLBaseStore):
|
|||||||
AND stream_id <= ?
|
AND stream_id <= ?
|
||||||
"""
|
"""
|
||||||
txn.execute(sql, (user_id, now_token,))
|
txn.execute(sql, (user_id, now_token,))
|
||||||
return self.cursor_to_dict(txn)
|
return [
|
||||||
|
{
|
||||||
|
"group_id": row[0],
|
||||||
|
"type": row[1],
|
||||||
|
"membership": row[2],
|
||||||
|
"content": json.loads(row[3]),
|
||||||
|
}
|
||||||
|
for row in txn
|
||||||
|
]
|
||||||
return self.runInteraction(
|
return self.runInteraction(
|
||||||
"get_all_groups_for_user", _get_all_groups_for_user_txn,
|
"get_all_groups_for_user", _get_all_groups_for_user_txn,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user