42 lines
2.4 KiB
TypeScript
42 lines
2.4 KiB
TypeScript
/* Metro module 9428; source: modules/game_console/trackVoiceCallTransfer.tsx; dependencies: [1379, 4294, 4296, 661, 683, 2] */
|
|
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
|
|
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
|
|
import RTCConnectionStore from '../../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
|
|
import SessionsStore from '../../stores/SessionsStore.tsx'; /* Metro dependency 4296 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun73396(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9614:6, offset: 0x01d6b254, size: 168 bytes, params: 8, frame: 19
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/game_console/trackVoiceCallTransfer.tsx');
|
|
exports.default = trackVoiceCallTransfer;
|
|
function trackVoiceCallTransfer(a0, a1, a2) { // fn#73397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9614:242, offset: 0x01d6b2fc, size: 182 bytes, params: 4, frame: 21
|
|
var r8;
|
|
var sessionById;
|
|
const value2 = undefined;
|
|
const defaultImport = AnalyticsUtils;
|
|
const track = defaultImport.track;
|
|
const VOICE_CALL_TRANSFER = AnalyticEvents.VOICE_CALL_TRANSFER;
|
|
const object = {};
|
|
if (a2 != null) {
|
|
sessionById = SessionsStore.getSessionById(a2);
|
|
r8 = sessionById == null ? value2 : sessionById.clientInfo.os;
|
|
} else {
|
|
r8 = 'discord_client';
|
|
}
|
|
object.source_platform = r8;
|
|
const channel = ChannelStore.getChannel(a0);
|
|
object.guild_id = channel == null ? value2 : channel.guild_id;
|
|
object.channel_id = a0;
|
|
object.rtc_connection_id = RTCConnectionStore.getRTCConnectionId();
|
|
object.target_platform = a1;
|
|
Reflect.apply(track, defaultImport, [VOICE_CALL_TRANSFER, object]);
|
|
return value2;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun73396, 9428, [1379, 4294, 4296, 661, 683,
|
|
2]) /* metro module 9428, dependencies: [1379, 4294, 4296, 661, 683, 2] */;
|