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
There is slightly late room key, so there is an UTD and the sdk tries to query the key from key storage.
And just after the room key arrives down the sync.
We then have two concurent actions trying to import the key
"Received a megolm room key that we already have a better version \
of, discarding"
);
Ok(None)
}
}
But they both think they are the first and that there is no matching key in store.
Therefore the first one to commit to the store wins. By-pasing the better/worse check.
The late key is better than the key from key storage, because it is safe (no gray shield)
The text was updated successfully, but these errors were encountered:
As seen in this rageshake https://rageshakes.element.io/api/listing/2024-11-06/130841-YOSPUGGB/console.2024-11-06-12.log.gz
There is slightly late room key, so there is an UTD and the sdk tries to query the key from key storage.
And just after the room key arrives down the sync.
We then have two concurent actions trying to import the key
import_room_keys
)handle_key
)The race is that they both try to see if there is an existing key in order to see if the new one is better or worse
matrix-rust-sdk/crates/matrix-sdk-crypto/src/store/mod.rs
Lines 1748 to 1756 in 8d07f36
and
matrix-rust-sdk/crates/matrix-sdk-crypto/src/machine/mod.rs
Lines 891 to 906 in 8d07f36
But they both think they are the first and that there is no matching key in store.
Therefore the first one to commit to the store wins. By-pasing the better/worse check.
The late key is better than the key from key storage, because it is safe (no gray shield)
The text was updated successfully, but these errors were encountered: