mirror of https://github.com/vector-im/riot-web
use alt_aliases rather than aliases for the display alias
parent
744826db48
commit
558ae1128b
|
@ -23,7 +23,7 @@ import {MatrixClientPeg} from './MatrixClientPeg';
|
|||
* of aliases. Otherwise return null;
|
||||
*/
|
||||
export function getDisplayAliasForRoom(room) {
|
||||
return room.getCanonicalAlias() || room.getAliases()[0];
|
||||
return room.getCanonicalAlias() || room.getAltAliases()[0];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue