mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Hide AutoMod term management messages in Streamer Mode. (#4758)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
3e1e400e3e
commit
1e35391075
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
## Unversioned
|
## Unversioned
|
||||||
|
|
||||||
|
- Major: AutoMod term management messages (e.g. testaccount added "noob" as a blocked term on AutoMod.) are now hidden in Streamer Mode if you have the "Hide moderation actions" setting enabled. (#4758)
|
||||||
- Minor: Message input is now focused when clicking on emotes. (#4719)
|
- Minor: Message input is now focused when clicking on emotes. (#4719)
|
||||||
- Minor: Changed viewer list to chatter list to more match Twitch's terminology. (#4732)
|
- Minor: Changed viewer list to chatter list to more match Twitch's terminology. (#4732)
|
||||||
- Minor: Nicknames are now taken into consideration when searching for messages. (#4663, #4742)
|
- Minor: Nicknames are now taken into consideration when searching for messages. (#4663, #4742)
|
||||||
|
|
|
@ -523,6 +523,12 @@ void Application::initPubSub()
|
||||||
|
|
||||||
this->twitch->pubsub->signals_.moderation.automodUserMessage.connect(
|
this->twitch->pubsub->signals_.moderation.automodUserMessage.connect(
|
||||||
[&](const auto &action) {
|
[&](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);
|
auto chan = this->twitch->getChannelOrEmptyByID(action.roomID);
|
||||||
|
|
||||||
if (chan->isEmpty())
|
if (chan->isEmpty())
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#include "util/DebugCount.hpp"
|
#include "util/DebugCount.hpp"
|
||||||
#include "util/Helpers.hpp"
|
#include "util/Helpers.hpp"
|
||||||
#include "util/RapidjsonHelpers.hpp"
|
#include "util/RapidjsonHelpers.hpp"
|
||||||
|
#include "util/StreamerMode.hpp"
|
||||||
|
|
||||||
#include <QJsonArray>
|
#include <QJsonArray>
|
||||||
|
|
||||||
|
|
|
@ -596,8 +596,9 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||||
layout.addCheckbox(
|
layout.addCheckbox(
|
||||||
"Hide viewer count and stream length while hovering over split header",
|
"Hide viewer count and stream length while hovering over split header",
|
||||||
s.streamerModeHideViewerCountAndDuration);
|
s.streamerModeHideViewerCountAndDuration);
|
||||||
layout.addCheckbox("Hide moderation actions", s.streamerModeHideModActions,
|
layout.addCheckbox(
|
||||||
false, "Hide bans & timeouts from appearing in chat.");
|
"Hide moderation actions", s.streamerModeHideModActions, false,
|
||||||
|
"Hide bans, timeouts, and automod messages from appearing in chat.");
|
||||||
layout.addCheckbox("Mute mention sounds", s.streamerModeMuteMentions, false,
|
layout.addCheckbox("Mute mention sounds", s.streamerModeMuteMentions, false,
|
||||||
"Mute your ping sound from playing.");
|
"Mute your ping sound from playing.");
|
||||||
layout.addCheckbox(
|
layout.addCheckbox(
|
||||||
|
|
Loading…
Reference in a new issue