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