mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 16:51:24 +01:00
remove local aliases from old room on upgrade
Without explicitly removing the old alias when reassigning aliases, we
were listing the alias on both rooms in the GET client/v3/rooms/{roomId}/aliases
endpoint. Resolving the alias still always pointed to the correct room.
This commit is contained in:
parent
48ecf50973
commit
07fb57be06
2 changed files with 6 additions and 0 deletions
|
|
@ -40,6 +40,9 @@ impl Service {
|
|||
));
|
||||
}
|
||||
|
||||
if self.resolve_local_alias(alias)?.is_some() {
|
||||
self.remove_alias(alias, user_id)?;
|
||||
}
|
||||
self.db.set_alias(alias, room_id)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue