Commit 389a181e authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

javascript/olm_inbound_group_session.js: fix length arg

message.length counts codepoints; we need bytes.
parent 315fbfc9
......@@ -69,7 +69,7 @@ InboundGroupSession.prototype['decrypt'] = restore_stack(function(
var plaintext_buffer = stack(max_plaintext_length);
var plaintext_length = session_method(Module["_olm_group_decrypt"])(
message_buffer, message.length,
message_buffer, message_array.length,
plaintext_buffer, max_plaintext_length
return Pointer_stringify(plaintext_buffer, plaintext_length);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment