decord/source/modules/conversations/components/native/ConversationFocusScreen.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

49 lines
2 KiB
TypeScript

// Module ID: 13405
// Function ID: 13406
// Name: ConversationFocusScreen
// Dependencies: [19, 7712, 21, 1487, 504, 13406, 2]
// Exports: default
// Module 13405 (ConversationFocusScreen)
import noop from "module_19" /* 19 */;
import ConversationsStore from "ConversationsStore" /* 7712 */;
const require = fn;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/conversations/components/native/ConversationFocusScreen.tsx");
export default function ConversationFocusScreen() {
const params = channelId(1487).useRoute().params;
channelId = params.channelId;
const conversationId = params.conversationId;
const obj = channelId(1487);
const items = [ConversationsStore];
const items1 = [channelId, conversationId];
const messages = channelId(504).useStateFromStores(items, () => ConversationsStore.getHydratedMessages(channelId, conversationId), items1);
let obj2 = channelId(504);
const items2 = [ConversationsStore];
const items3 = [channelId, conversationId];
const stateFromStoresObject = channelId(504).useStateFromStoresObject(items2, () => {
const conversationMetadata = ConversationsStore.getConversationMetadata(channelId, conversationId);
let flag;
if (conversationMetadata != null) {
flag = conversationMetadata.fullyHydrated;
}
if (flag == null) {
flag = false;
}
const obj2 = { fullyHydrated: flag, isFullFetchPending: ConversationsStore.isConversationFetchPending(conversationId, true), startMessageId: null };
let startMessageId;
if (conversationMetadata != null) {
startMessageId = conversationMetadata.conversation.startMessageId;
}
if (startMessageId == null) {
startMessageId = null;
}
obj2.startMessageId = startMessageId;
return obj2;
}, items3);
({ fullyHydrated, isFullFetchPending, startMessageId } = stateFromStoresObject);
return jsx(conversationId(13406), { channelId, conversationId, messages, fullyHydrated, isFullFetchPending, startMessageId });
};