Fixed duplicate acks printing

This commit is contained in:
Jordan Sherer 2019-01-17 09:56:42 -05:00
parent 685c1be141
commit 55d76dc67f

View File

@ -5597,12 +5597,12 @@ int MainWindow::writeMessageTextToUI(QDateTime date, QString text, int freq, boo
} }
} }
// fixup duplicate acks
auto tc = c.document()->find(text); auto tc = c.document()->find(text);
if(!tc.isNull()&& tc.blockNumber() == tc.document()->lastBlock().blockNumber()){ if(!tc.isNull() && text.contains(" ACK ")){
return tc.blockNumber(); return tc.blockNumber();
} }
if(found && !bold){ if(found && !bold){
c.clearSelection(); c.clearSelection();
c.insertText(text); c.insertText(text);