2026-10-06 11:16:32 +00:00
|
|
|
// Module ID: 11576
|
|
|
|
|
// Function ID: 11577
|
2026-09-24 10:59:02 +00:00
|
|
|
// Name: createConversationHeader
|
2026-10-06 11:16:32 +00:00
|
|
|
// Dependencies: [7603, 7616, 11577, 1126, 3655, 10001, 2]
|
2026-10-01 06:55:13 +00:00
|
|
|
// Exports: default, findConversationHeaderRowIndex, isConversationStartMessage
|
2026-09-24 10:59:02 +00:00
|
|
|
|
2026-10-06 11:16:32 +00:00
|
|
|
// Module 11576 (createConversationHeader)
|
2026-10-03 08:58:59 +00:00
|
|
|
import intl2 from "intl" /* 1126 */;
|
2026-10-06 11:16:32 +00:00
|
|
|
import _modDef3655 from "module_3655" /* 3655 */;
|
|
|
|
|
import renderer_EmbedUtils from "renderer/EmbedUtils" /* 7616 */;
|
|
|
|
|
import computeScrollData from "computeScrollData" /* 10001 */;
|
|
|
|
|
import AssetRegistryDefault from "AssetRegistry" /* 11577 */;
|
|
|
|
|
import RowGeneratorConstants from "RowGeneratorConstants" /* 7603 */;
|
2026-09-24 10:59:02 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
let c3;
|
|
|
|
|
let closure_4;
|
2026-10-01 06:55:13 +00:00
|
|
|
({ RowType: c3, SeparatorType: closure_4 } = RowGeneratorConstants);
|
2026-09-24 10:59:02 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/conversations/native/createConversationHeader.tsx");
|
|
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
export default function createConversationHeader(conversationId) {
|
2026-10-03 08:58:59 +00:00
|
|
|
let intl;
|
|
|
|
|
let obj2;
|
2026-10-06 11:16:32 +00:00
|
|
|
const obj = { conversationId: conversationId.id, channelId: conversationId.channelId, startMessageId: conversationId.startMessageId, title: conversationId.title, expandIconUrl: obj2.getAssetUriForEmbed(AssetRegistryDefault), expandAccessibilityLabel: intl.string(_modDef3655.pU5Dut) };
|
2026-10-03 08:58:59 +00:00
|
|
|
obj2 = renderer_EmbedUtils;
|
|
|
|
|
intl = intl2.intl;
|
2026-10-01 06:55:13 +00:00
|
|
|
return obj;
|
2026-09-24 10:59:02 +00:00
|
|
|
};
|
|
|
|
|
export const isConversationStartMessage = function isConversationStartMessage(startMessageId, id) {
|
2026-10-03 08:58:59 +00:00
|
|
|
return startMessageId.startMessageId === id && startMessageId.messageCount > 1;
|
2026-09-24 10:59:02 +00:00
|
|
|
};
|
2026-10-01 06:55:13 +00:00
|
|
|
export const findConversationHeaderRowIndex = function findConversationHeaderRowIndex(previousRows, startMessageId) {
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = computeScrollData;
|
|
|
|
|
const findMessageRowIndexResult = obj.findMessageRowIndex(previousRows, startMessageId.startMessageId);
|
2026-10-01 06:55:13 +00:00
|
|
|
if (null != findMessageRowIndexResult) {
|
|
|
|
|
let type;
|
|
|
|
|
if (previousRows[findMessageRowIndexResult + 1] != null) {
|
|
|
|
|
type = tmp2.type;
|
|
|
|
|
}
|
|
|
|
|
let sum;
|
|
|
|
|
if (type === constants.SEPARATOR) {
|
2026-10-03 08:58:59 +00:00
|
|
|
if (previousRows[findMessageRowIndexResult + 1].id === constants2.CONVERSATION) {
|
2026-10-01 06:55:13 +00:00
|
|
|
sum = findMessageRowIndexResult + 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return sum;
|
|
|
|
|
}
|
|
|
|
|
};
|