Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Allow room_alias_name parameter to be handled by /createRoom calls on workers #10757

Merged
merged 2 commits into from
Sep 6, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Allow room_alias_name to be handled by /createRoom calls routed to wo…
…rkers
anoadragon453 committed Sep 3, 2021
commit b280ca44685d5e30ca5f9542fb81c24a2e92451c
4 changes: 2 additions & 2 deletions synapse/storage/databases/main/directory.py
Original file line number Diff line number Diff line change
@@ -75,8 +75,6 @@ async def get_aliases_for_room(self, room_id: str) -> List[str]:
desc="get_aliases_for_room",
)


class DirectoryStore(DirectoryWorkerStore):
async def create_room_alias_association(
self,
room_alias: RoomAlias,
@@ -126,6 +124,8 @@ def alias_txn(txn):
409, "Room alias %s already exists" % room_alias.to_string()
)


class DirectoryStore(DirectoryWorkerStore):
async def delete_room_alias(self, room_alias: RoomAlias) -> str:
room_id = await self.db_pool.runInteraction(
"delete_room_alias", self._delete_room_alias_txn, room_alias