feat: Add Setting to Hide Reply Context (#4224)

This commit is contained in:
nerix
2022-12-07 22:02:54 +01:00
committed by GitHub
parent 4fdcac8ec5
commit ff54b4c8d2
5 changed files with 19 additions and 5 deletions
+3 -1
View File
@@ -1127,9 +1127,11 @@ MessageElementFlags ChannelView::getFlags() const
if (this->sourceChannel_ == app->twitch->mentionsChannel)
flags.set(MessageElementFlag::ChannelName);
if (this->context_ == Context::ReplyThread)
if (this->context_ == Context::ReplyThread ||
getSettings()->hideReplyContext)
{
// Don't show inline replies within the ReplyThreadPopup
// or if they're hidden
flags.unset(MessageElementFlag::RepliedMessage);
}