Usernames: Fetch own username from /whoami not /profile
This commit is contained in:
parent
70ae5bb613
commit
a023fc1bb0
9 changed files with 43 additions and 26 deletions
|
@ -2236,4 +2236,7 @@ export default class MessageSender {
|
|||
async deleteUsername(): Promise<ReturnType<WebAPIType['deleteUsername']>> {
|
||||
return this.server.deleteUsername();
|
||||
}
|
||||
async whoami(): Promise<ReturnType<WebAPIType['whoami']>> {
|
||||
return this.server.whoami();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -715,7 +715,6 @@ export type ProfileType = Readonly<{
|
|||
avatar?: string;
|
||||
unidentifiedAccess?: string;
|
||||
unrestrictedUnidentifiedAccess?: string;
|
||||
username?: string;
|
||||
uuid?: string;
|
||||
credential?: string;
|
||||
capabilities?: CapabilitiesType;
|
||||
|
@ -751,6 +750,7 @@ export type WhoamiResultType = Readonly<{
|
|||
uuid?: UUIDStringType;
|
||||
pni?: UUIDStringType;
|
||||
number?: string;
|
||||
username?: string;
|
||||
}>;
|
||||
|
||||
export type ConfirmCodeResultType = Readonly<{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue