Migrate schema to service ids

This commit is contained in:
Fedor Indutny 2023-08-16 22:54:39 +02:00 committed by Jamie Kyle
parent 71958f8a01
commit 8b0da36caa
258 changed files with 4795 additions and 2613 deletions

View file

@ -4,15 +4,18 @@
import type { ServiceIdString } from '../types/ServiceId';
import { strictAssert } from './assert';
export function startConversation(e164: string, uuid: ServiceIdString): void {
export function startConversation(
e164: string,
serviceId: ServiceIdString
): void {
const conversation = window.ConversationController.lookupOrCreate({
e164,
uuid,
serviceId,
reason: 'util/startConversation',
});
strictAssert(
conversation,
`startConversation failed given ${e164}/${uuid} combination`
`startConversation failed given ${e164}/${serviceId} combination`
);
window.reduxActions.conversations.showConversation({