Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
37 lines
1.6 KiB
TypeScript
37 lines
1.6 KiB
TypeScript
// Module ID: 18020
|
|
// Function ID: 18021
|
|
// Name: DismissCallAction
|
|
// Dependencies: [1074, 18015, 1242, 4787, 7256, 9274, 2]
|
|
|
|
// Module 18020 (DismissCallAction)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
|
|
import AppAnalyticsUtils from "AppAnalyticsUtils" /* 4787 */;
|
|
import AnalyticsLocationDefault from "AnalyticsLocation" /* 7256 */;
|
|
import CallActionCreatorsDefault from "CallActionCreators" /* 9274 */;
|
|
import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 18015 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
|
const result = size.fileFinishedImporting("modules/headless_tasks/android/DismissCallAction.tsx");
|
|
|
|
export default (arg0) => {
|
|
closure_0 = arg0;
|
|
return new Promise((arg0) => {
|
|
closure_0 = arg0;
|
|
HeadlessTaskUtilsDefault.awaitStorage(() => {
|
|
if (closure_0.isFullscreenCallUI) {
|
|
const obj2 = { action_type: "decline" };
|
|
const obj = AnalyticsUtilsDefault;
|
|
const merged = Object.assign(AppAnalyticsUtils.collectChannelAnalyticsMetadataFromId(tmp.channelId));
|
|
obj.track(AnalyticEvents.CALLKIT_CLICKED, obj2);
|
|
}
|
|
const obj4 = AnalyticsUtilsDefault;
|
|
const obj5 = { location: AnalyticsLocationDefault.PUSH_NOTIFICATION, guild_id: closure_0.guildId, ringer_user_id: closure_0.userId };
|
|
const merged1 = Object.assign(AppAnalyticsUtils.collectChannelAnalyticsMetadataFromId(tmp.channelId));
|
|
obj4.track(AnalyticEvents.RING_CALL_DECLINED, obj5);
|
|
CallActionCreatorsDefault.stopRinging(closure_0.channelId);
|
|
closure_0(true);
|
|
});
|
|
});
|
|
};
|