Skip to content

Commit

Permalink
fix: exclude automod channel from global search
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed Dec 3, 2023
1 parent 661e298 commit 69798c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/widgets/helper/ChannelView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ MessageElementFlags ChannelView::getFlags() const
}

if (this->sourceChannel_ == app->twitch->mentionsChannel ||
this->underlyingChannel_ == app->twitch->automodChannel)
this->sourceChannel_ == app->twitch->automodChannel)
{
flags.set(MessageElementFlag::ChannelName);
}
Expand Down
5 changes: 4 additions & 1 deletion src/widgets/splits/Split.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,10 @@ void Split::showSearch(bool singleChannel)
auto container = dynamic_cast<SplitContainer *>(notebook.getPageAt(i));
for (auto split : container->getSplits())
{
popup->addChannel(split->getChannelView());
if (split->channel_.getType() != Channel::Type::TwitchAutomod)
{
popup->addChannel(split->getChannelView());
}
}
}

Expand Down

0 comments on commit 69798c9

Please sign in to comment.