3555ccc629
Co-authored-by: Jamie Kyle <jamie@signal.org>
13 lines
439 B
TypeScript
13 lines
439 B
TypeScript
// Copyright 2023 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import type { ReadonlyMessageAttributesType } from '../model-types.d';
|
|
import type { ConversationModel } from '../models/conversations';
|
|
|
|
export function getMessageConversation({
|
|
conversationId,
|
|
}: Pick<ReadonlyMessageAttributesType, 'conversationId'>):
|
|
| ConversationModel
|
|
| undefined {
|
|
return window.ConversationController.get(conversationId);
|
|
}
|