Skip to content

Commit

Permalink
fix: fix the channel blocking that the previous commits broke whilst …
Browse files Browse the repository at this point in the history
…keeping the fix
  • Loading branch information
castdrian committed Dec 16, 2024
1 parent 3cb3846 commit 0e8534f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,15 @@
return YES;
}

if ([[ChannelManager sharedInstance] isChannelBlocked:text]) {
NSLog(@"[Gonerino] Removed content from blocked channel: %@", text);
return YES;
if ([text containsString:@" · "]) {
NSArray *components = [text componentsSeparatedByString:@" · "];
if (components.count >= 1) {
NSString *potentialChannelName = components[0];
if ([[ChannelManager sharedInstance] isChannelBlocked:potentialChannelName]) {
NSLog(@"[Gonerino] Removed content from blocked channel: %@", potentialChannelName);
return YES;
}
}
}
}

Expand Down

0 comments on commit 0e8534f

Please sign in to comment.