diff --git a/ts/textsecure/WebAPI.ts b/ts/textsecure/WebAPI.ts index a46f5ab452c..288e9d23e36 100644 --- a/ts/textsecure/WebAPI.ts +++ b/ts/textsecure/WebAPI.ts @@ -757,7 +757,7 @@ export type WebAPIType = { getMyKeys: () => Promise; getProfile: ( identifier: string, - options?: { + options: { profileKeyVersion?: string; profileKeyCredentialRequest?: string; } @@ -1307,7 +1307,7 @@ export function initialize({ options: { profileKeyVersion?: string; profileKeyCredentialRequest?: string; - } = {} + } ) { const { profileKeyVersion, profileKeyCredentialRequest } = options;