This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,60 @@
// 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;
}