From c2b51207ee9d6546a885746475e14141a29bcb36 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 5 Sep 2016 19:42:04 +0100 Subject: Fix error handling for group sessions Fix a couple of places where we were using the wrong method to get the last error. --- javascript/olm_outbound_group_session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'javascript/olm_outbound_group_session.js') diff --git a/javascript/olm_outbound_group_session.js b/javascript/olm_outbound_group_session.js index e59c8bb..71e1c91 100644 --- a/javascript/olm_outbound_group_session.js +++ b/javascript/olm_outbound_group_session.js @@ -54,7 +54,7 @@ OutboundGroupSession.prototype['unpickle'] = restore_stack(function(key, pickle) }); OutboundGroupSession.prototype['create'] = restore_stack(function(key) { - var random_length = session_method( + var random_length = outbound_group_session_method( Module['_olm_init_outbound_group_session_random_length'] )(this.ptr); var random = random_stack(random_length); -- cgit v1.2.3