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,6 +144,8 @@ void SplitInput::installKeyPressedEvent()
|
||||||
sendMessage = sendMessage.replace('\n', ' ');
|
sendMessage = sendMessage.replace('\n', ' ');
|
||||||
|
|
||||||
c->sendMessage(sendMessage);
|
c->sendMessage(sendMessage);
|
||||||
|
// don't add duplicate messages to message history
|
||||||
|
if (this->prevMsg.isEmpty() || !this->prevMsg.endsWith(message))
|
||||||
this->prevMsg.append(message);
|
this->prevMsg.append(message);
|
||||||
|
|
||||||
event->accept();
|
event->accept();
|
||||||
|
|
Loading…
Reference in a new issue