Try to appease the linter

t3chguy/dedup-icons-17oct
Johannes Marbach 2023-01-27 15:14:20 +01:00
parent e0e149be3d
commit c557162592
1 changed files with 2 additions and 2 deletions

View File

@ -419,7 +419,7 @@ const toLocalRoom = (cli: MatrixClient, room: IHierarchyRoom, hierarchy: RoomHie
// Pick latest room that is actually part of the hierarchy // Pick latest room that is actually part of the hierarchy
let cliRoom = null; let cliRoom = null;
for (let idx = history.length - 1; idx >= 0; --idx) { for (let idx = history.length - 1; idx >= 0; --idx) {
if (hierarchy.roomMap[history[idx].roomId]) { if (hierarchy.roomMap.get(history[idx].roomId)) {
cliRoom = history[idx]; cliRoom = history[idx];
break; break;
} }
@ -432,7 +432,7 @@ const toLocalRoom = (cli: MatrixClient, room: IHierarchyRoom, hierarchy: RoomHie
room_type: cliRoom.getType(), room_type: cliRoom.getType(),
name: cliRoom.name, name: cliRoom.name,
topic: cliRoom.currentState.getStateEvents(EventType.RoomTopic, "")?.getContent().topic, topic: cliRoom.currentState.getStateEvents(EventType.RoomTopic, "")?.getContent().topic,
avatar_url: cliRoom.getMxcAvatarUrl(), avatar_url: cliRoom.getMxcAvatarUrl() ?? undefined,
canonical_alias: cliRoom.getCanonicalAlias(), canonical_alias: cliRoom.getCanonicalAlias(),
aliases: cliRoom.getAltAliases(), aliases: cliRoom.getAltAliases(),
world_readable: world_readable: