Skip to content

Commit

Permalink
irc: fix regression in ConversationModel
Browse files Browse the repository at this point in the history
self-explanatory
  • Loading branch information
wfr committed Jan 29, 2025
1 parent 66ce6d8 commit 72ee207
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/irc/shims/ConversationModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 72ee207

Please sign in to comment.