Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
38 lines
1.4 KiB
TypeScript
38 lines
1.4 KiB
TypeScript
// Module ID: 10089
|
|
// Function ID: 10090
|
|
// Name: trackVoiceCallTransfer
|
|
// Dependencies: [2041, 4811, 4806, 1074, 1241, 2]
|
|
// Exports: default
|
|
|
|
// Module 10089 (trackVoiceCallTransfer)
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
|
|
import ChannelStore from "ChannelStore" /* 2041 */;
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 4811 */;
|
|
import SessionsStore from "SessionsStore" /* 4806 */;
|
|
|
|
const AnalyticEvents = fn(1074).AnalyticEvents;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/game_console/trackVoiceCallTransfer.tsx");
|
|
|
|
export default function trackVoiceCallTransfer(channel_id, target_platform, sessionId) {
|
|
let str = "discord_client";
|
|
if (null != sessionId) {
|
|
const sessionById = SessionsStore.getSessionById(sessionId);
|
|
let os;
|
|
if (sessionById != null) {
|
|
os = sessionById.clientInfo.os;
|
|
}
|
|
str = os;
|
|
}
|
|
const obj2 = { source_platform: str, guild_id: null, channel_id: null, rtc_connection_id: null, target_platform: null };
|
|
const channel = ChannelStore.getChannel(channel_id);
|
|
let guild_id;
|
|
if (channel != null) {
|
|
guild_id = channel.guild_id;
|
|
}
|
|
obj2.guild_id = guild_id;
|
|
obj2.channel_id = channel_id;
|
|
obj2.rtc_connection_id = RTCConnectionStore.getRTCConnectionId();
|
|
obj2.target_platform = target_platform;
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.VOICE_CALL_TRANSFER, obj2);
|
|
};
|