mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Merge pull request #1969 from Bnyro/fix-unauth-subs
Fix unsubscribing without account
This commit is contained in:
		
						commit
						28abc1087e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue