Use UUIDs in group database schema

This commit is contained in:
Fedor Indutny 2021-10-26 15:59:08 -07:00 committed by GitHub
parent 74fde10ff5
commit 63fcdbe787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
79 changed files with 4530 additions and 3664 deletions

View file

@ -6,6 +6,7 @@ import { trigger } from '../../shims/events';
import type { NoopActionType } from './noop';
import type { LocalizerType } from '../../types/Util';
import { ThemeType } from '../../types/Util';
import type { UUIDStringType } from '../../types/UUID';
// State
@ -15,7 +16,7 @@ export type UserStateType = {
tempPath: string;
ourConversationId: string;
ourDeviceId: number;
ourUuid: string;
ourUuid: UUIDStringType;
ourNumber: string;
platform: string;
regionCode: string;
@ -31,7 +32,7 @@ type UserChangedActionType = {
payload: {
ourConversationId?: string;
ourDeviceId?: number;
ourUuid?: string;
ourUuid?: UUIDStringType;
ourNumber?: string;
regionCode?: string;
interactionMode?: 'mouse' | 'keyboard';
@ -53,7 +54,7 @@ function userChanged(attributes: {
ourConversationId?: string;
ourDeviceId?: number;
ourNumber?: string;
ourUuid?: string;
ourUuid?: UUIDStringType;
regionCode?: string;
theme?: ThemeType;
}): UserChangedActionType {
@ -81,7 +82,7 @@ export function getEmptyState(): UserStateType {
tempPath: 'missing',
ourConversationId: 'missing',
ourDeviceId: 0,
ourUuid: 'missing',
ourUuid: '00000000-0000-4000-8000-000000000000',
ourNumber: 'missing',
regionCode: 'missing',
platform: 'missing',