Fix unsubscribing without account

This commit is contained in:
Bnyro 2023-01-10 19:30:16 +01:00
parent 537050b07d
commit 5076701f58

View File

@ -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();