Open BillCarsonFr opened 7 hours ago
For what it's worth: it was simple enough that we implemented it at the FFI layer, in the UTD hook trait impl:
Might be fine to move it over to the SDK, if that's what you implied here, but probably lower priority.
On web we have a configurable grace period for late key delivery https://github.com/element-hq/element-web/blob/9a126795a81d13aba2d331b38df75878682d54a1/src/DecryptionFailureTracker.ts#L122
There is no similar mecanism with the rust UTD hook, the late decryption are never graced https://github.com/matrix-org/matrix-rust-sdk/blob/9b6de4e4367a465b7605eb931d0e4375df8f5ddd/crates/matrix-sdk-ui/src/unable_to_decrypt_hook.rs#L268-L283