remove duplicate definition

This commit is contained in:
Hubert Chathi 2021-12-01 14:34:29 -05:00
parent 701f9c765d
commit ee76674f03

View file

@ -172,17 +172,6 @@ Account.prototype['fallback_key'] = restore_stack(function() {
return UTF8ToString(keys, keys_length); return UTF8ToString(keys, keys_length);
}); });
Account.prototype['fallback_key'] = restore_stack(function() {
var keys_length = account_method(
Module['_olm_account_fallback_key_length']
)(this.ptr);
var keys = stack(keys_length + NULL_BYTE_PADDING_LENGTH);
account_method(Module['_olm_account_fallback_key'])(
this.ptr, keys, keys_length
);
return UTF8ToString(keys, keys_length);
});
Account.prototype['unpublished_fallback_key'] = restore_stack(function() { Account.prototype['unpublished_fallback_key'] = restore_stack(function() {
var keys_length = account_method( var keys_length = account_method(
Module['_olm_account_unpublished_fallback_key_length'] Module['_olm_account_unpublished_fallback_key_length']