mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-08 07:28:26 +00:00
use alt_aliases rather than aliases for the display alias
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ import {MatrixClientPeg} from './MatrixClientPeg';
|
|||||||
* of aliases. Otherwise return null;
|
* of aliases. Otherwise return null;
|
||||||
*/
|
*/
|
||||||
export function getDisplayAliasForRoom(room) {
|
export function getDisplayAliasForRoom(room) {
|
||||||
return room.getCanonicalAlias() || room.getAliases()[0];
|
return room.getCanonicalAlias() || room.getAltAliases()[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user