mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-09 17:36:59 +00:00
Groups: Fix mising json.load in initial sync
This commit is contained in:
parent
a1e67bcb97
commit
175a01f56c
1 changed files with 7 additions and 1 deletions
|
@ -1101,7 +1101,13 @@ class GroupServerStore(SQLBaseStore):
|
||||||
LIMIT ?
|
LIMIT ?
|
||||||
"""
|
"""
|
||||||
txn.execute(sql, (from_token, to_token, limit,))
|
txn.execute(sql, (from_token, to_token, limit,))
|
||||||
return txn.fetchall()
|
return [{
|
||||||
|
"stream_id": stream_id,
|
||||||
|
"group_id": group_id,
|
||||||
|
"user_id": user_id,
|
||||||
|
"type": gtype,
|
||||||
|
"content": json.loads(content_json),
|
||||||
|
} for stream_id, group_id, user_id, gtype, content_json in txn]
|
||||||
return self.runInteraction(
|
return self.runInteraction(
|
||||||
"get_all_groups_changes", _get_all_groups_changes_txn,
|
"get_all_groups_changes", _get_all_groups_changes_txn,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue