1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Two more easy files to remove from eslintignore

Just missing params/returns on jsdoc
This commit is contained in:
David Baker
2020-10-30 18:40:19 +00:00
parent db0d74d0d4
commit db343b522b
3 changed files with 6 additions and 3 deletions

View File

@@ -21,6 +21,9 @@ import {MatrixClientPeg} from './MatrixClientPeg';
* if any. This could be the canonical alias if one exists, otherwise
* an alias selected arbitrarily but deterministically from the list
* of aliases. Otherwise return null;
*
* @param {Object} room The room object
* @returns {string} A display alias for the given room
*/
export function getDisplayAliasForRoom(room) {
return room.getCanonicalAlias() || room.getAltAliases()[0];