From 5076701f58498a8203c54dd19761e8d216bf85af Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 10 Jan 2023 19:30:16 +0100 Subject: [PATCH] Fix unsubscribing without account --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index c56e4ae8..4fb415b7 100644 --- a/src/main.js +++ b/src/main.js @@ -224,7 +224,7 @@ const mixin = { handleLocalSubscriptions(channelId) { var localSubscriptions = this.getLocalSubscriptions() ?? []; if (localSubscriptions.includes(channelId)) - localSubscriptions.splice(localSubscriptions.indexOf(channelId)); + localSubscriptions.splice(localSubscriptions.indexOf(channelId), 1); else localSubscriptions.push(channelId); // Sort for better cache hits localSubscriptions.sort();