-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bindings/crypto-nodejs: after each receiveSyncChanges
call, there is an empty KeysUploadRequest
pending
#800
Comments
receiveSyncChanges
call, there is an empty KeysUploadRequest
pendingreceiveSyncChanges
call, there is an empty KeysUploadRequest
pending
I bet it's related to |
I wouldn't bet on that.
So we can see that the keys upload request will be We can also see that, when we convert the request to js, we don't seem to map the fallback key field:
So my bet is that we never upload the fallback key because we don't pass it to the js side, the machine rightfully so tries to upload it again on the next sync. |
Come to think of, why doesn't that macro use It ends up converting the map to a string in the end anyways. |
(exposing the fallback key would also be a great thing to have) |
What do you mean by exposing? |
fallback keys from a http standpoint are only two parts: |
Ok in that case, not only is it a great thing, it's a necessary thing. That's the whole bug here, we don't and won't support not uploading the fallback key. |
sorry, to rephrase: the intent is that the bindings will support fallback keys? |
They have to support fallback keys, otherwise you end up uploading empty Yes, they will support fallback keys. |
That's a good question. I guess I got inspired by the crypto-FFI binding itself: matrix-rust-sdk/bindings/matrix-sdk-crypto-ffi/src/responses.rs Lines 131 to 142 in a8601e1
|
That's a good catch and I remembered why we don't serialize Let's fix this the ugly way for now and we'll have customized requests/responses that do implement |
Correct. Some types from |
sample logs:
The outgoing request should be omitted if there's nothing to actually upload.
The text was updated successfully, but these errors were encountered: