mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-09 12:11:03 +00:00
Fix room aliases
Aliases must return pure name
This commit is contained in:
parent
eed68b37fe
commit
e51ff105e7
@ -55,7 +55,7 @@ func (room *Room) Aliases() []string {
|
|||||||
var aliases []string
|
var aliases []string
|
||||||
for alias, serverRoom := range room.server.roomAliases {
|
for alias, serverRoom := range room.server.roomAliases {
|
||||||
if serverRoom.ID() == room.ID() {
|
if serverRoom.ID() == room.ID() {
|
||||||
aliases = append(aliases, "#"+alias+":"+room.server.hostname)
|
aliases = append(aliases, alias)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user