diff --git a/src/widgets/helper/splitinput.cpp b/src/widgets/helper/splitinput.cpp index 18ddb6528..3a8a21827 100644 --- a/src/widgets/helper/splitinput.cpp +++ b/src/widgets/helper/splitinput.cpp @@ -144,7 +144,9 @@ void SplitInput::installKeyPressedEvent() sendMessage = sendMessage.replace('\n', ' '); c->sendMessage(sendMessage); - this->prevMsg.append(message); + // don't add duplicate messages to message history + if (this->prevMsg.isEmpty() || !this->prevMsg.endsWith(message)) + this->prevMsg.append(message); event->accept(); if (!(event->modifiers() == Qt::ControlModifier)) {