Skip to content

Commit

Permalink
WebAPI: Require options in getProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHahn-Signal committed Oct 12, 2021
1 parent 7dca544 commit c9a49ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/textsecure/WebAPI.ts
Expand Up @@ -757,7 +757,7 @@ export type WebAPIType = {
getMyKeys: () => Promise<number>;
getProfile: (
identifier: string,
options?: {
options: {
profileKeyVersion?: string;
profileKeyCredentialRequest?: string;
}
Expand Down Expand Up @@ -1307,7 +1307,7 @@ export function initialize({
options: {
profileKeyVersion?: string;
profileKeyCredentialRequest?: string;
} = {}
}
) {
const { profileKeyVersion, profileKeyCredentialRequest } = options;

Expand Down

0 comments on commit c9a49ec

Please sign in to comment.