decord/alpha/source/modules/game_console/trackVoiceCallTransfer.tsx
2026-10-10 08:08:14 +00:00

39 lines
1.4 KiB
TypeScript

// Module ID: 11118
// Function ID: 11119
// Name: trackVoiceCallTransfer
// Dependencies: [2065, 5110, 5112, 1085, 1265, 2]
// Exports: default
// Module 11118 (trackVoiceCallTransfer)
import Constants from "Constants" /* 1085 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1265 */;
import ChannelStore from "ChannelStore" /* 2065 */;
import RTCConnectionStore from "RTCConnectionStore" /* 5110 */;
import SessionsStore from "SessionsStore" /* 5112 */;
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);
};