forked from MirrorHub/synapse
Fix initial sync
This commit is contained in:
parent
47d9848dc4
commit
069ae2df12
1 changed files with 9 additions and 1 deletions
|
@ -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 a new issue