aboutsummaryrefslogtreecommitdiff
path: root/javascript/olm_inbound_group_session.js
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2016-09-06 11:07:53 +0100
committerGitHub <noreply@github.com>2016-09-06 11:07:53 +0100
commit8912d13b0b856e5eb3e43594260dd5da3ad6535c (patch)
treeff5e4cd1de2462592c768f96c1b97c7b9f9afb84 /javascript/olm_inbound_group_session.js
parent617f9b1696015d42e8b31067d520ce76fd3c6425 (diff)
parentc2b51207ee9d6546a885746475e14141a29bcb36 (diff)
Merge pull request #17 from matrix-org/rav/group_session_error_handling
Fix error handling for group sessions
Diffstat (limited to 'javascript/olm_inbound_group_session.js')
-rw-r--r--javascript/olm_inbound_group_session.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/olm_inbound_group_session.js b/javascript/olm_inbound_group_session.js
index aac2c70..9722c31 100644
--- a/javascript/olm_inbound_group_session.js
+++ b/javascript/olm_inbound_group_session.js
@@ -66,14 +66,14 @@ InboundGroupSession.prototype['decrypt'] = restore_stack(function(
) {
var message_array = array_from_string(message);
var message_buffer = stack(message_array);
- var max_plaintext_length = session_method(
+ var max_plaintext_length = inbound_group_session_method(
Module['_olm_group_decrypt_max_plaintext_length']
)(this.ptr, message_buffer, message_array.length);
// caculating the length destroys the input buffer.
// So we copy the array to a new buffer
var message_buffer = stack(message_array);
var plaintext_buffer = stack(max_plaintext_length + NULL_BYTE_PADDING_LENGTH);
- var plaintext_length = session_method(Module["_olm_group_decrypt"])(
+ var plaintext_length = inbound_group_session_method(Module["_olm_group_decrypt"])(
this.ptr,
message_buffer, message_array.length,
plaintext_buffer, max_plaintext_length