Skip to content

Commit

Permalink
Ignore key backup acks for unknown sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 10, 2023
1 parent 4639f0c commit 47de368
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crypto/keysharing.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ func (mach *OlmMachine) handleBeeperRoomKeyAck(ctx context.Context, sender id.Us
log.Err(err).Msg("Failed to get group session to check if it should be redacted")
}
return
} else if sess == nil {
log.Warn().Msg("Got key backup ack for unknown session")
return
}
log = log.With().
Str("sender_key", sess.SenderKey.String()).
Expand Down

0 comments on commit 47de368

Please sign in to comment.