2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 7523
|
|
|
|
|
// Function ID: 7524
|
2026-09-24 10:59:02 +00:00
|
|
|
// Name: resolveSelectedConversation
|
|
|
|
|
// Dependencies: [2]
|
|
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 7523 (resolveSelectedConversation)
|
2026-09-24 10:59:02 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/conversations/resolveSelectedConversation.tsx");
|
|
|
|
|
|
|
|
|
|
export default function resolveSelectedConversation(getConversationMetadata, getConversation, channelId, conversationId) {
|
|
|
|
|
const conversationMetadata = getConversationMetadata.getConversationMetadata(channelId, conversationId);
|
|
|
|
|
let conversation;
|
|
|
|
|
if (conversationMetadata != null) {
|
|
|
|
|
conversation = conversationMetadata.conversation;
|
|
|
|
|
}
|
|
|
|
|
if (conversation == null) {
|
|
|
|
|
conversation = getConversation.getConversation(conversationId);
|
|
|
|
|
}
|
|
|
|
|
return conversation;
|
|
|
|
|
};
|