Device | Pitfall with set_local_trust
on Device
that is triggering a full DeviceChange
and can overwrite other changes.
#4073
Labels
There is a pitfall with
Device
andset_local_trust
. If you keep a Device object around for some time then later on do aset_local_trust
it is doing a fullDeviceChanges
that would overwrite changes that could have happens during that time (things likedeleted
olm_wedging_index
withheld_code_sent
)Here
matrix-rust-sdk/crates/matrix-sdk-crypto/src/identities/device.rs
Lines 396 to 402 in 65b4223
Exposed in sdk here
matrix-rust-sdk/crates/matrix-sdk/src/encryption/identities/devices.rs
Line 548 in 65b4223
The text was updated successfully, but these errors were encountered: