Onboarding story
This commit is contained in:
parent
94f318ea08
commit
19a42ed719
42 changed files with 725 additions and 143 deletions
17
ts/util/isSignalConversation.ts
Normal file
17
ts/util/isSignalConversation.ts
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue