Onboarding story

This commit is contained in:
Josh Perez 2022-11-08 21:38:19 -05:00 committed by GitHub
parent 94f318ea08
commit 19a42ed719
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 725 additions and 143 deletions

View file

@ -0,0 +1,17 @@
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { SIGNAL_ACI } from '../types/Conversation';
export function isSignalConversation(conversation: {
id: string;
uuid?: string;
}): boolean {
const { id, uuid } = conversation;
if (uuid) {
return uuid === SIGNAL_ACI;
}
return window.ConversationController.isSignalConversation(id);
}