We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
OlmEncryption.encryptMessage()
devices
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
This came up while iterating #2137;
In OlmEncryption.encryptMessage, when iterating over devices per user, the function calls getStoredDevicesForUser, which can return null.
OlmEncryption.encryptMessage
getStoredDevicesForUser
null
This does not throw an error, as any comparison operation with undefined is false.
undefined
false
matrix-js-sdk/src/crypto/algorithms/olm.ts
Line 123 in c1abab6
(Looking further into the code, I'm not sure if this is a real bug, or if this is (accidental) intended behavior.)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This came up while iterating #2137;
In
OlmEncryption.encryptMessage
, when iterating over devices per user, the function callsgetStoredDevicesForUser
, which can returnnull
.This does not throw an error, as any comparison operation with
undefined
isfalse
.matrix-js-sdk/src/crypto/algorithms/olm.ts
Line 123 in c1abab6
(Looking further into the code, I'm not sure if this is a real bug, or if this is (accidental) intended behavior.)
The text was updated successfully, but these errors were encountered: