Hide AutoMod term management messages in Streamer Mode. (#4758)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Mm2PL
2023-08-12 18:16:30 +02:00
committed by GitHub
parent 3e1e400e3e
commit 1e35391075
4 changed files with 11 additions and 2 deletions
+6
View File
@@ -523,6 +523,12 @@ void Application::initPubSub()
this->twitch->pubsub->signals_.moderation.automodUserMessage.connect(
[&](const auto &action) {
// This condition has been set up to execute isInStreamerMode() as the last thing
// as it could end up being expensive.
if (getSettings()->streamerModeHideModActions && isInStreamerMode())
{
return;
}
auto chan = this->twitch->getChannelOrEmptyByID(action.roomID);
if (chan->isEmpty())