Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
22 lines
777 B
TypeScript
22 lines
777 B
TypeScript
// Module ID: 7350
|
|
// Function ID: 7351
|
|
// Name: resolveSelectedConversation
|
|
// Dependencies: [2]
|
|
// Exports: default
|
|
|
|
// Module 7350 (resolveSelectedConversation)
|
|
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;
|
|
};
|