From 3f5b9dd6d72540a66da90b382a2eda088af63da0 Mon Sep 17 00:00:00 2001
From: Hubert Chathi <hubert@uhoreg.ca>
Date: Wed, 3 Jan 2018 21:41:48 -0500
Subject: [PATCH] patch for libolm: fix some typos in JavaScript library

From 4a82d31e8cb808a04956fc847ed0ec0ff322b956 Mon Sep 17 00:00:00 2001
From: Hubert Chathi <hubert@uhoreg.ca>
Date: Wed, 3 Jan 2018 21:37:43 -0500
Subject: [PATCH] fix some typos in JavaScript library

Signed-off-by: Hubert Chathi <hubert@uhoreg.ca>
---
 javascript/olm_post.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/javascript/olm_post.js b/javascript/olm_post.js
index 65eab02..91830fa 100644
--- a/javascript/olm_post.js
+++ b/javascript/olm_post.js
@@ -433,9 +433,9 @@ Utility.prototype['sha256'] = restore_stack(function(input) {
     var input_array = array_from_string(input);
     var input_buffer = stack(input_array);
     var output_buffer = stack(output_length + NULL_BYTE_PADDING_LENGTH);
-    utility_method(Module['_olm_sha2516'])(
+    utility_method(Module['_olm_sha256'])(
         this.ptr,
-        input_buffer, input_array.length(),
+        input_buffer, input_array.length,
         output_buffer, output_length
     );
     return Pointer_stringify(output_buffer);
-- 
GitLab