mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-26 20:22:22 +00:00
Merge pull request #2533 from matrix-org/erikj/fix_group_repl
Fix group stream replication
This commit is contained in:
commit
af94ba9d02
@ -1172,13 +1172,13 @@ class GroupServerStore(SQLBaseStore):
|
|||||||
LIMIT ?
|
LIMIT ?
|
||||||
"""
|
"""
|
||||||
txn.execute(sql, (from_token, to_token, limit,))
|
txn.execute(sql, (from_token, to_token, limit,))
|
||||||
return [{
|
return [(
|
||||||
"stream_id": stream_id,
|
stream_id,
|
||||||
"group_id": group_id,
|
group_id,
|
||||||
"user_id": user_id,
|
user_id,
|
||||||
"type": gtype,
|
gtype,
|
||||||
"content": json.loads(content_json),
|
json.loads(content_json),
|
||||||
} for stream_id, group_id, user_id, gtype, content_json in txn]
|
) 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…
Reference in New Issue
Block a user