Cache some volatile conversation properties

This commit is contained in:
Fedor Indutny
2022-12-22 16:13:23 -08:00
committed by GitHub
parent ba79595563
commit f92f81dfd6
6 changed files with 157 additions and 92 deletions

View File

@@ -8,7 +8,9 @@ import type { ConversationType } from '../state/ducks/conversations';
import { isConversationNameKnown } from './isConversationNameKnown';
import { isInSystemContacts } from './isInSystemContacts';
export type GroupNameCollisionsWithIdsByTitle = Record<string, Array<string>>;
export type GroupNameCollisionsWithIdsByTitle = Readonly<
Record<string, Array<string>>
>;
export type GroupNameCollisionsWithConversationsByTitle = Record<
string,
Array<ConversationType>