diff --git a/CHANGELOG.md b/CHANGELOG.md index c87b8d12d..677d96966 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unversioned -- Major: Added support for Twitch's Chat Replies. [Wiki Page](https://wiki.chatterino.com/Features/#message-replies) (#3722) +- Major: Added support for Twitch's Chat Replies. [Wiki Page](https://wiki.chatterino.com/Features/#message-replies) (#3722, #3989) - Major: Added multi-channel searching to search dialog via keyboard shortcut. (Ctrl+Shift+F by default) (#3694, #3875) - Minor: Added option to display tabs on the right and bottom. (#3847) - Minor: Added `is:first-msg` search option. (#3700) diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index 4a4c73f2d..ab635bd3d 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -978,9 +978,13 @@ void SplitInput::setReply(std::shared_ptr reply, if (this->enableInlineReplying_) { // Only enable reply label if inline replying - this->ui_.textEdit->setPlainText( - "@" + this->replyThread_->root()->displayName + " "); - this->ui_.textEdit->moveCursor(QTextCursor::EndOfBlock); + auto replyPrefix = "@" + this->replyThread_->root()->displayName + " "; + auto plainText = this->ui_.textEdit->toPlainText().trimmed(); + if (!plainText.startsWith(replyPrefix)) + { + this->ui_.textEdit->setPlainText(replyPrefix + plainText + " "); + this->ui_.textEdit->moveCursor(QTextCursor::EndOfBlock); + } this->ui_.replyLabel->setText("Replying to @" + this->replyThread_->root()->displayName); }