mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-10 10:18:23 +00:00
Fix unsubscribing without account
This commit is contained in:
parent
537050b07d
commit
5076701f58
@ -224,7 +224,7 @@ const mixin = {
|
|||||||
handleLocalSubscriptions(channelId) {
|
handleLocalSubscriptions(channelId) {
|
||||||
var localSubscriptions = this.getLocalSubscriptions() ?? [];
|
var localSubscriptions = this.getLocalSubscriptions() ?? [];
|
||||||
if (localSubscriptions.includes(channelId))
|
if (localSubscriptions.includes(channelId))
|
||||||
localSubscriptions.splice(localSubscriptions.indexOf(channelId));
|
localSubscriptions.splice(localSubscriptions.indexOf(channelId), 1);
|
||||||
else localSubscriptions.push(channelId);
|
else localSubscriptions.push(channelId);
|
||||||
// Sort for better cache hits
|
// Sort for better cache hits
|
||||||
localSubscriptions.sort();
|
localSubscriptions.sort();
|
||||||
|
Loading…
Reference in New Issue
Block a user