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

This commit is contained in:
David Teller 2022-12-21 19:35:10 +01:00
parent cff9b43207
commit 505702065a

View File

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