Generate PNI key on standalone registration

This commit is contained in:
Fedor Indutny 2021-12-03 03:06:32 +01:00 committed by GitHub
parent 13de35bea2
commit ca1aef660f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 101 additions and 81 deletions

View file

@ -2036,7 +2036,7 @@ export default class MessageSender {
// Simple pass-throughs
async getProfile(
number: string,
uuid: UUID,
options: Readonly<{
accessKey?: string;
profileKeyVersion: string;
@ -2051,10 +2051,10 @@ export default class MessageSender {
...options,
accessKey,
};
return this.server.getProfileUnauth(number, unauthOptions);
return this.server.getProfileUnauth(uuid.toString(), unauthOptions);
}
return this.server.getProfile(number, options);
return this.server.getProfile(uuid.toString(), options);
}
async checkAccountExistence(uuid: UUID): Promise<boolean> {