Support phone number sharing flag on profile
This commit is contained in:
parent
23f39a0dc7
commit
d71da5c486
16 changed files with 155 additions and 33 deletions
|
@ -34,9 +34,7 @@ import type {
|
|||
GetProfileUnauthOptionsType,
|
||||
GroupCredentialsType,
|
||||
GroupLogResponseType,
|
||||
ProfileRequestDataType,
|
||||
ProxiedRequestOptionsType,
|
||||
UploadAvatarHeadersType,
|
||||
WebAPIType,
|
||||
} from './WebAPI';
|
||||
import createTaskWithTimeout from './TaskWithTimeout';
|
||||
|
@ -2232,17 +2230,4 @@ export default class MessageSender {
|
|||
): Promise<void> {
|
||||
return this.server.sendChallengeResponse(challengeResponse);
|
||||
}
|
||||
|
||||
async putProfile(
|
||||
jsonData: Readonly<ProfileRequestDataType>
|
||||
): Promise<UploadAvatarHeadersType | undefined> {
|
||||
return this.server.putProfile(jsonData);
|
||||
}
|
||||
|
||||
async uploadAvatar(
|
||||
requestHeaders: Readonly<UploadAvatarHeadersType>,
|
||||
avatarData: Readonly<Uint8Array>
|
||||
): Promise<string> {
|
||||
return this.server.uploadAvatar(requestHeaders, avatarData);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue