diff options
author | Erik Johnston <erik@matrix.org> | 2023-01-13 14:57:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 14:57:43 +0000 |
commit | 73ff493dfba63541a09eaf08587eb8bbd3330967 (patch) | |
tree | 97691d93c6e16922f85f1555577ffec2aece2142 /synapse/handlers/account_data.py | |
parent | Update misleading documentation ` user_directory.search_all_users ` (#14818) (diff) | |
download | synapse-73ff493dfba63541a09eaf08587eb8bbd3330967.tar.xz |
Merge account data streams (#14826)
Diffstat (limited to 'synapse/handlers/account_data.py')
-rw-r--r-- | synapse/handlers/account_data.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/handlers/account_data.py b/synapse/handlers/account_data.py index aba7315cf7..834006356a 100644 --- a/synapse/handlers/account_data.py +++ b/synapse/handlers/account_data.py @@ -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, + } ) ( |