aboutsummaryrefslogtreecommitdiff
path: root/javascript/olm_post.js
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-07-21 10:50:17 +0100
committerMark Haines <mark.haines@matrix.org>2015-07-21 10:50:17 +0100
commitbb70307b11bb7d8e69ef8ac50ee1d870cd12c286 (patch)
treea6815300666383ad6f2c31d533cd709ca17433aa /javascript/olm_post.js
parentf0bb8e03b315356a105975df83200cd87f24efb3 (diff)
Fix javascript bindings: matches_inbound doesn't take an account argument
Diffstat (limited to 'javascript/olm_post.js')
-rw-r--r--javascript/olm_post.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/javascript/olm_post.js b/javascript/olm_post.js
index af1cdb8..ae9fafe 100644
--- a/javascript/olm_post.js
+++ b/javascript/olm_post.js
@@ -252,24 +252,24 @@ Session.prototype['session_id'] = restore_stack(function() {
});
Session.prototype['matches_inbound'] = restore_stack(function(
- account, one_time_key_message
+ one_time_key_message
) {
var message_array = array_from_string(one_time_key_message);
var message_buffer = stack(message_array);
return session_method(Module['_olm_matches_inbound_session'])(
- this.ptr, account.ptr, message_buffer, message_array.length
+ this.ptr, message_buffer, message_array.length
) ? true : false;
});
Session.prototype['matches_inbound_from'] = restore_stack(function(
- account, identity_key, one_time_key_message
+ identity_key, one_time_key_message
) {
var identity_key_array = array_from_string(identity_key);
var identity_key_buffer = stack(identity_key_array);
var message_array = array_from_string(one_time_key_message);
var message_buffer = stack(message_array);
return session_method(Module['_olm_matches_inbound_session_from'])(
- this.ptr, account.ptr,
+ this.ptr,
identity_key_buffer, identity_key_array.length,
message_buffer, message_array.length
) ? true : false;