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,32 @@
// Metro module 7784 (f7785).
export const WELCOME_STICKERS = [{
id: "749054660769218631",
format_type: 3,
description: "Wumpus waves hello",
name: "Wave"
}, {
id: "751606379340365864",
format_type: 3,
description: "Nelly peeks around a wall and waves hello",
name: "Wave"
}, {
id: "754108890559283200",
format_type: 3,
description: "Clyde cheerfully waving",
name: "Wave"
}, {
id: "781291131828699156",
format_type: 2,
description: "Choco waves in greeting",
name: "Wave"
}, {
id: "816087792291282944",
format_type: 3,
description: "Doggo spins and greets you",
name: "Sup"
}, {
id: "819128604311027752",
format_type: 3,
description: "Peach raising her arms in distress",
name: "Scream"
}];
+29
View File
@@ -0,0 +1,29 @@
// Metro module 7783 (f7784).
import UserStore from "../../stores/UserStore";
import { WELCOME_STICKERS } from "./WelcomeCTAConstants";
import { AnalyticEvents } from "../../Constants";
import SnowflakeUtils from "../../utils/SnowflakeUtils";
import MessageActionCreators from "../../actions/MessageActionCreators";
import AnalyticsUtils from "../../utils/AnalyticsUtils";
export function pickHelloSticker() {
const id = UserStore.getCurrentUser()?.id;
return WELCOME_STICKERS[(id != null ? SnowflakeUtils.extractTimestamp(id) : 0) % WELCOME_STICKERS.length];
}
export function pickWelcomeSticker(a0) {
const id = UserStore.getCurrentUser()?.id;
return WELCOME_STICKERS[((id != null ? SnowflakeUtils.extractTimestamp(id) : 0) + SnowflakeUtils.extractTimestamp(a0)) % WELCOME_STICKERS.length];
}
export function handleWelcomeCtaClicked(a0, a1, a2) {
MessageActionCreators.sendGreetMessage(a0.id, a2, MessageActionCreators.getSendMessageOptionsForReply({
channel: a0,
message: a1,
shouldMention: true,
showMentionToggle: true
}));
AnalyticsUtils.track(AnalyticEvents.WELCOME_CTA_CLICKED, {
is_reply: true,
sticker_id: a2,
target_user: a1.author.id,
sender: UserStore.getCurrentUser()?.id
});
}