PolicyListManager: Let's not forget to remove the room also from the set of rooms we failed to resolve (#463)

This commit is contained in:
David Teller 2022-12-22 09:42:09 +01:00 committed by GitHub
parent cff9b43207
commit b7d5e5d7bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -686,6 +686,7 @@ export class PolicyListManager {
if (!permalink.roomIdOrAlias) return null; if (!permalink.roomIdOrAlias) return null;
const roomId = await this.mjolnir.client.resolveRoom(permalink.roomIdOrAlias); const roomId = await this.mjolnir.client.resolveRoom(permalink.roomIdOrAlias);
this.failedStartupWatchListRefs.delete(roomRef);
const list = this.policyLists.find(b => b.roomId === roomId) || null; const list = this.policyLists.find(b => b.roomId === roomId) || null;
if (list) { if (list) {
this.policyLists.splice(this.policyLists.indexOf(list), 1); this.policyLists.splice(this.policyLists.indexOf(list), 1);