feat: Hide messages from suspicious users in streamer mode (#6042)
This is a setting that's enabled by default and can be disabled under the "Streamer mode" sub-category in the settings dialog
This commit is contained in:
@@ -166,6 +166,17 @@ void MessageLayout::actuallyLayout(const MessageLayoutContext &ctx)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (this->message_->flags.hasAny(MessageFlag::RestrictedMessage,
|
||||
MessageFlag::MonitoredMessage))
|
||||
{
|
||||
if (getApp()->getStreamerMode()->shouldHideSuspiciousUsers())
|
||||
{
|
||||
// Message is being hidden because the source is a
|
||||
// restricted or monitored user
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (this->message_->flags.has(MessageFlag::ModerationAction))
|
||||
{
|
||||
if (hideModerationActions ||
|
||||
|
||||
Reference in New Issue
Block a user