Usernames: Fetch own username from /whoami not /profile

This commit is contained in:
Scott Nonnenberg
2021-12-15 12:02:55 -08:00
committed by GitHub
parent 70ae5bb613
commit a023fc1bb0
9 changed files with 43 additions and 26 deletions

View File

@@ -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<{