Clean up some typos
Remove redundant args from some js funcs, and fix a comment typo
This commit is contained in:
parent
7c84ce8098
commit
50cd2b2a43
2 changed files with 4 additions and 4 deletions
|
@ -160,7 +160,7 @@ size_t olm_outbound_group_session_key_length(
|
|||
/**
|
||||
* Get the base64-encoded current ratchet key for this session.
|
||||
*
|
||||
* Each message is sent with a diffent ratchet key. This function returns the
|
||||
* Each message is sent with a different ratchet key. This function returns the
|
||||
* ratchet key that will be used for the next message.
|
||||
*
|
||||
* Returns the length of the ratchet key on success or olm_error() on
|
||||
|
|
|
@ -53,7 +53,7 @@ OutboundGroupSession.prototype['unpickle'] = restore_stack(function(key, pickle)
|
|||
);
|
||||
});
|
||||
|
||||
OutboundGroupSession.prototype['create'] = restore_stack(function(key) {
|
||||
OutboundGroupSession.prototype['create'] = restore_stack(function() {
|
||||
var random_length = outbound_group_session_method(
|
||||
Module['_olm_init_outbound_group_session_random_length']
|
||||
)(this.ptr);
|
||||
|
@ -78,7 +78,7 @@ OutboundGroupSession.prototype['encrypt'] = restore_stack(function(plaintext) {
|
|||
return Pointer_stringify(message_buffer);
|
||||
});
|
||||
|
||||
OutboundGroupSession.prototype['session_id'] = restore_stack(function(key) {
|
||||
OutboundGroupSession.prototype['session_id'] = restore_stack(function() {
|
||||
var length = outbound_group_session_method(
|
||||
Module['_olm_outbound_group_session_id_length']
|
||||
)(this.ptr);
|
||||
|
@ -89,7 +89,7 @@ OutboundGroupSession.prototype['session_id'] = restore_stack(function(key) {
|
|||
return Pointer_stringify(session_id);
|
||||
});
|
||||
|
||||
OutboundGroupSession.prototype['session_key'] = restore_stack(function(key) {
|
||||
OutboundGroupSession.prototype['session_key'] = restore_stack(function() {
|
||||
var key_length = outbound_group_session_method(
|
||||
Module['_olm_outbound_group_session_key_length']
|
||||
)(this.ptr);
|
||||
|
|
Loading…
Reference in a new issue