Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/imessage/aps_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,12 @@ impl IMClient {
target: Some(target),
..
} = &payload {
if error_string == "ec-com.apple.messageprotection-802" {
// refreshing identity cache can fix this
if error_string.starts_with("ec-com.apple.messageprotection-") {
// refreshing identity cache can fix this; previously this only
// matched "-802" but the same recovery path also resolves "-6"
// (signature/decrypt verification failed) and other recoverable
// message-protection codes that indicate a stale per-device
// session key. See discussion in openbubbles-app#206.
let mut cache_lock = self.identity.cache.lock().await;
cache_lock.invalidate(&target, &sender);
}
Expand Down