mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
PolicyListManager: Let's not forget to remove the room also from the set of rooms we failed to resolve
This commit is contained in:
parent
cff9b43207
commit
505702065a
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user