decord/stable/source/modules/game_console/trackVoiceCallTransfer.tsx
2026-10-06 22:12:49 +00:00

39 lines
1.4 KiB
TypeScript

// Module ID: 9227
// Function ID: 9228
// Name: trackVoiceCallTransfer
// Dependencies: [2051, 4860, 4855, 1086, 1253, 2]
// Exports: default
// Module 9227 (trackVoiceCallTransfer)
import Constants from "Constants" /* 1086 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1253 */;
import ChannelStore from "ChannelStore" /* 2051 */;
import RTCConnectionStore from "RTCConnectionStore" /* 4860 */;
import SessionsStore from "SessionsStore" /* 4855 */;
import size from "module_2" /* 2 */;
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/game_console/trackVoiceCallTransfer.tsx");
export default function trackVoiceCallTransfer(channel_id, target_platform, sessionId) {
let guild_id;
let str = "discord_client";
const track = AnalyticsUtilsDefault.track;
const VOICE_CALL_TRANSFER = AnalyticEvents.VOICE_CALL_TRANSFER;
AnalyticsUtilsDefault;
if (null != sessionId) {
const sessionById = SessionsStore.getSessionById(sessionId);
let os;
if (sessionById != null) {
os = sessionById.clientInfo.os;
}
str = os;
}
const obj = { source_platform: str, guild_id, channel_id, rtc_connection_id: RTCConnectionStore.getRTCConnectionId(), target_platform };
const channel = ChannelStore.getChannel(channel_id);
guild_id = undefined;
if (channel != null) {
guild_id = channel.guild_id;
}
track(VOICE_CALL_TRANSFER, obj);
};