mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-20 17:20:22 -04:00
Merge account data streams (#14826)
This commit is contained in:
parent
1416096527
commit
73ff493dfb
12 changed files with 75 additions and 83 deletions
|
@ -16,6 +16,7 @@ import logging
|
|||
import random
|
||||
from typing import TYPE_CHECKING, Awaitable, Callable, Collection, List, Optional, Tuple
|
||||
|
||||
from synapse.api.constants import AccountDataTypes
|
||||
from synapse.replication.http.account_data import (
|
||||
ReplicationAddRoomAccountDataRestServlet,
|
||||
ReplicationAddTagRestServlet,
|
||||
|
@ -335,7 +336,11 @@ class AccountDataEventSource(EventSource[int, JsonDict]):
|
|||
|
||||
for room_id, room_tags in tags.items():
|
||||
results.append(
|
||||
{"type": "m.tag", "content": {"tags": room_tags}, "room_id": room_id}
|
||||
{
|
||||
"type": AccountDataTypes.TAG,
|
||||
"content": {"tags": room_tags},
|
||||
"room_id": room_id,
|
||||
}
|
||||
)
|
||||
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue