Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
970fc60f
Commit
970fc60f
authored
Jul 17, 2015
by
Mark Haines
Browse files
Add remove_one_time_keys to the javascript bindings
parent
3468886e
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/olm_post.js
View file @
970fc60f
...
...
@@ -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_method
(
Module
[
'
_olm_account_max_number_of_one_time_keys
'
])(
return
account_method
(
Module
[
'
_olm_account_max_number_of_one_time_keys
'
])(
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
)
{
var
key_array
=
array_from_string
(
key
);
var
pickle_length
=
account_method
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment