From 013cac1365d0c8b2ab1ed77f0943f636fbcaee9a Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 11 May 2020 21:35:37 -0600 Subject: [PATCH] Fix remaining getRoomAlias calls --- src/Mjolnir.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mjolnir.ts b/src/Mjolnir.ts index 159e2e5e..1030a9c0 100644 --- a/src/Mjolnir.ts +++ b/src/Mjolnir.ts @@ -26,7 +26,6 @@ import ErrorCache, { ERROR_KIND_FATAL, ERROR_KIND_PERMISSION } from "./ErrorCach import { IProtection } from "./protections/IProtection"; import { PROTECTIONS } from "./protections/protections"; import { AutomaticRedactionQueue } from "./queues/AutomaticRedactionQueue"; -import { getRoomAlias } from "./utils"; export const STATE_NOT_STARTED = "not_started"; export const STATE_CHECKING_PERMISSIONS = "checking_permissions"; @@ -596,7 +595,7 @@ export class Mjolnir { text += `${textTitle}${errors.length} errors updating protected rooms!\n`; const viaServers = [(new UserID(await this.client.getUserId())).domain]; for (const error of errors) { - const alias = (await getRoomAlias(this.client, error.roomId)) || error.roomId; + const alias = (await this.client.getPublishedAlias(error.roomId)) || error.roomId; const url = Permalinks.forRoom(alias, viaServers); html += `
  • ${alias} - ${error.errorMessage}
  • `; text += `${url} - ${error.errorMessage}\n`;