Add remove_one_time_keys to the javascript bindings
This commit is contained in:
parent
3468886e27
commit
970fc60f8b
1 changed files with 7 additions and 1 deletions
|
@ -105,7 +105,7 @@ Account.prototype['mark_keys_as_published'] = restore_stack(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
Account.prototype['max_number_of_one_time_keys'] = restore_stack(function() {
|
Account.prototype['max_number_of_one_time_keys'] = restore_stack(function() {
|
||||||
account_method(Module['_olm_account_max_number_of_one_time_keys'])(
|
return account_method(Module['_olm_account_max_number_of_one_time_keys'])(
|
||||||
this.ptr
|
this.ptr
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -122,6 +122,12 @@ Account.prototype['generate_one_time_keys'] = restore_stack(function(
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Account.prototype['remove_one_time_keys'] = restore_stack(function(session) {
|
||||||
|
account_method(Module['_olm_remove_one_time_keys'])(
|
||||||
|
this.ptr, session.ptr
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
Account.prototype['pickle'] = restore_stack(function(key) {
|
Account.prototype['pickle'] = restore_stack(function(key) {
|
||||||
var key_array = array_from_string(key);
|
var key_array = array_from_string(key);
|
||||||
var pickle_length = account_method(
|
var pickle_length = account_method(
|
||||||
|
|
Loading…
Reference in a new issue