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);
}
+9 -4
View File
@@ -190,6 +190,10 @@ void GeneralPage::initLayout(GeneralPageView &layout)
tabDirectionDropdown->setMinimumWidth(
tabDirectionDropdown->minimumSizeHint().width());
layout.addCheckbox(
"Show message reply context", s.hideReplyContext, true,
"This setting will only affect how messages are shown. You can reply "
"to a message regardless of this setting.");
layout.addCheckbox("Show message reply button", s.showReplyButton);
layout.addCheckbox("Show tab close button", s.showTabCloseButton);
layout.addCheckbox("Always on top", s.windowTopMost, false,
@@ -843,10 +847,11 @@ void GeneralPage::initLayout(GeneralPageView &layout)
"message) into one cheermote.");
layout.addCheckbox("Messages in /mentions highlights tab",
s.highlightMentions);
layout.addCheckbox("Strip leading mention in replies", s.stripReplyMention,
true,
"When disabled, messages sent in reply threads will "
"include the @mention for the related thread");
layout.addCheckbox(
"Strip leading mention in replies", s.stripReplyMention, true,
"When disabled, messages sent in reply threads will include the "
"@mention for the related thread. If the reply context is hidden, "
"these mentions will never be stripped.");
// Helix timegate settings
auto helixTimegateGetValue = [](auto val) {