From ea3947df9f7184d74d2029faaa58116a79bb5ca0 Mon Sep 17 00:00:00 2001 From: Gnuxie <50846879+Gnuxie@users.noreply.github.com> Date: Thu, 8 Jun 2023 17:03:42 +0100 Subject: [PATCH] Typo unwatching lists. (#55) This is actually really bad. For multiple reasons. The best way for this to be avoided is to drop everything and reload it when the account data for watched lists is changed. Then there isn't a situation where you have to inform anyone about a change in what lists are being watched. --- src/models/AccessControlUnit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/AccessControlUnit.ts b/src/models/AccessControlUnit.ts index d2b6f7b3..abb18a2c 100644 --- a/src/models/AccessControlUnit.ts +++ b/src/models/AccessControlUnit.ts @@ -241,7 +241,7 @@ export default class AccessControlUnit { public unwatchList(list: PolicyList) { for (const cache of this.caches) { - cache.watchList(list); + cache.unwatchList(list); } }