aboutsummaryrefslogtreecommitdiff
path: root/javascript/olm_post.js
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2016-09-05 10:38:41 +0100
committerGitHub <noreply@github.com>2016-09-05 10:38:41 +0100
commit2aad4cfa860e33228372d525b4bc6a8bcdfbb8f6 (patch)
tree752c7e1c6d806acf7804b3728aecf30088c3d7d9 /javascript/olm_post.js
parentfee1748c60f48fbe3a243a36fcfcc7e8be6e4a78 (diff)
parent2e9021c2e73786e9045c0634c43efa86f18ac8de (diff)
Merge pull request #15 from matrix-org/rav/has_received_message
OlmSession.has_received_message
Diffstat (limited to 'javascript/olm_post.js')
-rw-r--r--javascript/olm_post.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/javascript/olm_post.js b/javascript/olm_post.js
index dac89f6..8951c11 100644
--- a/javascript/olm_post.js
+++ b/javascript/olm_post.js
@@ -263,6 +263,13 @@ Session.prototype['session_id'] = restore_stack(function() {
return Pointer_stringify(id_buffer);
});
+Session.prototype['has_received_message'] = function() {
+ return session_method(Module['_olm_session_has_received_message'])(
+ this.ptr
+ ) ? true : false;
+};
+
+
Session.prototype['matches_inbound'] = restore_stack(function(
one_time_key_message
) {