mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-11 15:30:23 -04:00
Update aliases event after deletion
Attempt to update the appropriate `m.room.aliases` event after deleting an alias. This may fail due to the deleter not being in the room. Will also check if the canonical alias of the event is set to the deleted alias, and if so will attempt to delete it.
This commit is contained in:
parent
48b2e853a8
commit
2cd9260500
2 changed files with 48 additions and 7 deletions
|
@ -127,8 +127,9 @@ class ClientDirectoryServer(ClientV1RestServlet):
|
|||
room_alias = RoomAlias.from_string(room_alias)
|
||||
|
||||
yield dir_handler.delete_association(
|
||||
user.to_string(), room_alias
|
||||
requester, user.to_string(), room_alias
|
||||
)
|
||||
|
||||
logger.info(
|
||||
"User %s deleted alias %s",
|
||||
user.to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue