Files
Desktop/ts/util/getMessageConversation.ts
2025-09-16 17:39:03 -07:00

14 lines
445 B
TypeScript

// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { ReadonlyMessageAttributesType } from '../model-types.d.ts';
import type { ConversationModel } from '../models/conversations.js';
export function getMessageConversation({
conversationId,
}: Pick<ReadonlyMessageAttributesType, 'conversationId'>):
| ConversationModel
| undefined {
return window.ConversationController.get(conversationId);
}