2023-10-04 00:12:57 +00:00
|
|
|
// Copyright 2023 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2024-07-24 20:14:11 +00:00
|
|
|
import type { ReadonlyMessageAttributesType } from '../model-types.d';
|
2023-10-04 00:12:57 +00:00
|
|
|
import type { ConversationModel } from '../models/conversations';
|
|
|
|
|
|
|
|
export function getMessageConversation({
|
|
|
|
conversationId,
|
2024-07-24 20:14:11 +00:00
|
|
|
}: Pick<ReadonlyMessageAttributesType, 'conversationId'>):
|
2023-10-04 00:12:57 +00:00
|
|
|
| ConversationModel
|
|
|
|
| undefined {
|
|
|
|
return window.ConversationController.get(conversationId);
|
|
|
|
}
|