diff --git a/javascript/index.d.ts b/javascript/index.d.ts index 8464b65..76efba9 100644 --- a/javascript/index.d.ts +++ b/javascript/index.d.ts @@ -30,7 +30,7 @@ declare class Account { generate_fallback_key(); fallback_key(): string; unpublished_fallback_key(): string; - forget_old_fallback(): void; + forget_old_fallback_key(): void; pickle(key: string | Uint8Array): string; unpickle(key: string | Uint8Array, pickle: string); } diff --git a/javascript/olm_post.js b/javascript/olm_post.js index 92dd817..7fc976a 100644 --- a/javascript/olm_post.js +++ b/javascript/olm_post.js @@ -183,7 +183,7 @@ Account.prototype['unpublished_fallback_key'] = restore_stack(function() { return UTF8ToString(keys, keys_length); }); -Account.prototype['forget_old_fallback'] = restore_stack(function() { +Account.prototype['forget_old_fallback_key'] = restore_stack(function() { account_method(Module['_olm_account_forget_old_fallback_key'])( this.ptr );