mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Don't add duplicats to message history (#277)
This commit is contained in:
parent
b2f041989c
commit
6c56e9cc82
1 changed files with 3 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue