diff --git a/src/irc/shims/ConversationModel.cpp b/src/irc/shims/ConversationModel.cpp index f45808e8..1ced7a29 100644 --- a/src/irc/shims/ConversationModel.cpp +++ b/src/irc/shims/ConversationModel.cpp @@ -570,6 +570,12 @@ namespace shims } auto row = this->indexOfOutgoingMessage(messageId); + // irc clears the history very frequently, which can lead to outgoing messages + // disappearing before they're acknowledged. + // ignore ACKs for unknown messages. + if (row == -1) { + return; + } Q_ASSERT(row >= 0); MessageData &data = messages[row];