Optimize profile avatar uploads and sync urls
This commit is contained in:
parent
703bb8a3a3
commit
36ce4f27a2
15 changed files with 147 additions and 77 deletions
|
@ -65,6 +65,11 @@ export type SaveAvatarToDiskActionType = (
|
|||
conversationId?: string
|
||||
) => unknown;
|
||||
|
||||
export type AvatarUpdateType = Readonly<{
|
||||
oldAvatar: Uint8Array | undefined;
|
||||
newAvatar: Uint8Array | undefined;
|
||||
}>;
|
||||
|
||||
const groupIconColors = [
|
||||
'A180',
|
||||
'A120',
|
||||
|
|
2
ts/types/Storage.d.ts
vendored
2
ts/types/Storage.d.ts
vendored
|
@ -107,7 +107,7 @@ export type StorageAccessType = {
|
|||
typingIndicators: boolean;
|
||||
sealedSenderIndicators: boolean;
|
||||
storageFetchComplete: boolean;
|
||||
avatarUrl: string;
|
||||
avatarUrl: string | undefined;
|
||||
manifestVersion: number;
|
||||
storageCredentials: StorageServiceCredentials;
|
||||
'storage-service-error-records': Array<UnknownRecord>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue