Send text attachment stories

This commit is contained in:
Josh Perez 2022-08-02 15:31:55 -04:00 committed by GitHub
parent 0340f4ee1d
commit 9eff67446f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 1635 additions and 339 deletions

View file

@ -0,0 +1,19 @@
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { ConversationAttributesType } from '../model-types.d';
import type { ConversationModel } from '../models/conversations';
import type { ConversationType } from '../state/ducks/conversations';
import { isInSystemContacts } from './isInSystemContacts';
export function isSignalConnection(
conversation: ConversationType | ConversationAttributesType
): boolean {
return conversation.profileSharing || isInSystemContacts(conversation);
}
export function getSignalConnections(): Array<ConversationModel> {
return window
.getConversations()
.filter(conversation => isSignalConnection(conversation.attributes));
}