// Metro module 7718 (f7719). import GuildAutomodMessageStore from "../../../guild_automod/GuildAutomodMessageStore"; import { RowType } from "./RowGeneratorConstants"; import createMessageContent from "./createMessageContent"; import { intl, t } from "../../../../intl/index.native"; import RowGeneratorUtils from "./RowGeneratorUtils"; export function generateMessageRowData(a0, a1, a2) { const { changeType, message, roleStyle, isFirst, isEditing, separatorBefore, canAddNewReactions, reactionsTheme, isSystemDM: isSystemDM2 = false, canShowImages: canShowImages2 = true, truncation, renderContentOnly, pushFeedbackType, alwaysShowAddReaction: alwaysShowAddReaction2 = false } = a0; let overrideBackgroundHighlight = a0.overrideBackgroundHighlight; const r30 = { type: RowType.MESSAGE, message: createMessageContent({ options: a1, message, roleStyle, isFirst, isEditing, canShowImages: canShowImages2, isSystemDM: isSystemDM2, isInlineReplyPreview: false, pushFeedbackType, renderContentOnly, showContentInventoryEntryFallbackEmbed: a0.showContentInventoryEntryFallbackEmbed }), canAddNewReactions, addNewReactionAccessibilityLabel: intl.string(t.lfIHs4), reactionsTheme, highlightLabel: intl.string(t["IOS/dU"]), renderContentOnly, separatorBefore, changeType, truncation, alwaysShowAddReaction: alwaysShowAddReaction2, backgroundHighlight: null, swipeActions: null, replyAccessibilityLabel: null, forwardAccessibilityLabel: null, threadAccessibilityLabel: null, forcedTheme: null }; if (overrideBackgroundHighlight == null) { overrideBackgroundHighlight = RowGeneratorUtils.createBackgroundHighlight({ message, theme: a2, isEditing, isAutomodBlockedMessage: GuildAutomodMessageStore.getMessage(message.id) != null }); } r30.backgroundHighlight = overrideBackgroundHighlight; r30.swipeActions = RowGeneratorUtils.createSwipeActions(a1.enableSwipeActions && a0.canReply, a1.enableSwipeActions && a0.canEdit); r30.replyAccessibilityLabel = intl.string(t["5IEsGx"]); r30.forwardAccessibilityLabel = intl.string(t.I3ltXO); r30.threadAccessibilityLabel = intl.string(t.rBIGBL); let forcedTheme = a1.forcedTheme; if (forcedTheme == null) { forcedTheme = void 0; } r30.forcedTheme = forcedTheme; return r30; }