Harden UUID-handling code paths

This commit is contained in:
Ken Powers
2020-06-12 18:36:32 -04:00
committed by Scott Nonnenberg
parent d3a27a6442
commit bf04c9114e
10 changed files with 193 additions and 124 deletions

5
ts/window.d.ts vendored
View File

@@ -96,7 +96,12 @@ export type ConversationControllerType = {
identifier: string,
type: 'private' | 'group'
) => Promise<ConversationType>;
getOrCreate: (
identifier: string,
type: 'private' | 'group'
) => ConversationType;
getConversationId: (identifier: string) => string | null;
ensureContactIds: (o: { e164?: string; uuid?: string }) => string;
prepareForSend: (
id: string,
options: Object