You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refresh the sender's public key when a signature fails key-validity checks #3370
After this PR, any rejection other than "Missing verification key" shows BAD_SIGNATURE. That's the right default, but there is a false-positive case: the stored copy of the sender's key has expired, while the sender has since extended it and published the update. The genuine message now shows "bad signature", and the user can't fix it, because the key lookup (fetchAndUpdateInfoAboutRecipients in MessageDetailsFragment / ThreadDetailsFragment) only runs for hasUnverifiedSignatures.
Proposal (needs agreement on the behaviour first): when the rejection is caused by key validity (expired, revoked), fetch the sender's current key and verify again, showing "verifying" in the meantime. A tampered body still stays red. If the refreshed key is still expired or revoked, keep BAD_SIGNATURE. The refreshed key must go through the usual rules for replacing a stored public key, never a silent swap. For a separate PR.
Activity