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
We can see from the logs that the initial key/upload is handled first. This initial upload also contained 50 otks, so the one time key count is updated
As a consequence the sdk considers that the intial 50 keys have been used, so it will generate new ones.
Not sure if this behavior could cause problems.
If I remind correctly on legacy sdk we never considered the response of key/upload to update the published count of one time key.
Instead we only track the count that we got from the sync.
That means that after the fisrt sync the current count was considered unknown, thus an empty key/upload call was made to have the current count.
Maybe could avoid this scenario?, but we expect the sync response to be valid (see element-hq/synapse#17491)
The text was updated successfully, but these errors were encountered:
Can be reproduced on EX.
After login, the sdk will schedule:
We can see from the logs that the initial
key/upload
is handled first. This initial upload also contained 50 otks, so the one time key count is updatedmatrix-rust-sdk/crates/matrix-sdk-crypto/src/olm/account.rs
Lines 1222 to 1226 in fbc914f
Then in a quick race the first sync response is handled, the sync response says:
So the one time key count is updated again to 0 this time.
matrix-rust-sdk/crates/matrix-sdk-crypto/src/machine/mod.rs
Lines 1390 to 1393 in fbc914f
As a consequence the sdk considers that the intial 50 keys have been used, so it will generate new ones.
Not sure if this behavior could cause problems.
If I remind correctly on legacy sdk we never considered the response of
key/upload
to update the published count of one time key.Instead we only track the count that we got from the sync.
That means that after the fisrt sync the current count was considered unknown, thus an empty
key/upload
call was made to have the current count.Maybe could avoid this scenario?, but we expect the sync response to be valid (see element-hq/synapse#17491)
The text was updated successfully, but these errors were encountered: