fix: disable reply options where we know it wouldn't work (#6119)

This commit is contained in:
hemirt
2025-06-15 13:35:18 +02:00
committed by GitHub
parent 04ba83b90f
commit faa435c957
9 changed files with 172 additions and 29 deletions
-18
View File
@@ -544,22 +544,4 @@ void MessageLayout::addSelectionText(QString &str, uint32_t from, uint32_t to,
this->container_.addSelectionText(str, from, to, copymode);
}
bool MessageLayout::isReplyable() const
{
if (this->message_->loginName.isEmpty())
{
return false;
}
if (this->message_->flags.hasAny(
{MessageFlag::System, MessageFlag::Subscription,
MessageFlag::Timeout, MessageFlag::Whisper,
MessageFlag::ModerationAction}))
{
return false;
}
return true;
}
} // namespace chatterino
-1
View File
@@ -110,7 +110,6 @@ public:
// Misc
bool isDisabled() const;
bool isReplyable() const;
private:
// methods