Repository navigation
Commit 475f5dd
fix(matrix): clear exhausted decrypt retries on crypto signal
When Matrix decryption fails with MEGOLM_UNKNOWN_INBOUND_SESSION_ID
('The sender's device has not sent us the keys'), the decrypt bridge
retries up to 8 times before permanently marking the event as exhausted
in exhaustedDecryptRetries. After this point, even when crypto signals
arrive that could indicate new keys are available (KeyBackupDecryptionKeyCached,
RehydrationCompleted, DevicesUpdated, KeysChanged), retryPendingNow()
returns immediately because decryptRetries is empty.
This causes Matrix communication to stall until a gateway restart, as
previously exhausted events can never be retried.
Fix: clear exhaustedDecryptRetries and failedDecryptionsNotified when
crypto signals fire, allowing events to be retried after new keys
potentially become available.
Closes #93501
Co-Authored-By: Claude <[email protected]>1 parent a664c44 commit 475f5dd
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
0 commit comments