2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 11078
|
|
|
|
|
// Function ID: 11079
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: trackVoiceCallTransfer
|
2026-10-09 10:00:15 +00:00
|
|
|
// Dependencies: [2064, 5109, 5111, 1085, 1265, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-09 10:00:15 +00:00
|
|
|
// Module 11078 (trackVoiceCallTransfer)
|
2026-10-03 08:58:59 +00:00
|
|
|
import Constants from "Constants" /* 1085 */;
|
2026-10-09 10:00:15 +00:00
|
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1265 */;
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 2064 */;
|
|
|
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 5109 */;
|
|
|
|
|
import SessionsStore from "SessionsStore" /* 5111 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/game_console/trackVoiceCallTransfer.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
export default function trackVoiceCallTransfer(channel_id, target_platform, sessionId) {
|
2026-10-03 08:58:59 +00:00
|
|
|
let guild_id;
|
2026-07-20 16:05:17 +00:00
|
|
|
let str = "discord_client";
|
2026-10-03 08:58:59 +00:00
|
|
|
const track = AnalyticsUtilsDefault.track;
|
|
|
|
|
const VOICE_CALL_TRANSFER = AnalyticEvents.VOICE_CALL_TRANSFER;
|
|
|
|
|
AnalyticsUtilsDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (null != sessionId) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const sessionById = SessionsStore.getSessionById(sessionId);
|
2026-07-20 16:05:17 +00:00
|
|
|
let os;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (sessionById != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
os = sessionById.clientInfo.os;
|
|
|
|
|
}
|
|
|
|
|
str = os;
|
|
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = { source_platform: str, guild_id, channel_id, rtc_connection_id: RTCConnectionStore.getRTCConnectionId(), target_platform };
|
2026-09-10 05:38:07 +00:00
|
|
|
const channel = ChannelStore.getChannel(channel_id);
|
2026-10-03 08:58:59 +00:00
|
|
|
guild_id = undefined;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (channel != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
guild_id = channel.guild_id;
|
|
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
track(VOICE_CALL_TRANSFER, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|