Skip to content

Commit

Permalink
signalmeow/receiving: actually ignore old counter decryption erorrs
Browse files Browse the repository at this point in the history
Might fix #552
  • Loading branch information
tulir committed Sep 23, 2024
1 parent d144a21 commit ebd8114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/signalmeow/receiving.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ func (cli *Client) handleDecryptedResult(
logEvt.Stringer("sender", theirServiceID).Msg("Decryption error with known sender")
// Only send decryption error event if the message was urgent,
// to prevent spamming errors for typing notifications and whatnot
if envelope.GetUrgent() {
if envelope.GetUrgent() && !strings.Contains(result.Err.Error(), "message with old counter") {
cli.handleEvent(&events.DecryptionError{
Sender: theirServiceID.UUID,
Err: result.Err,
Expand Down

0 comments on commit ebd8114

Please sign in to comment.