decord/source/modules/voice_calls/native/VoiceActionSheetManager.tsx

47 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 12699
// Function ID: 12700
2026-07-29 08:29:29 +00:00
// Name: _initialize
2026-08-24 06:08:38 +00:00
// Dependencies: [4501, 4547, 4726, 709, 8700, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 12699 (_initialize)
import initializeDefault from "initialize" /* 4726 */;
import closure_3 from "_detectH265HardwareDecode" /* 4501 */;
import closure_4 from "updateVoiceState" /* 4547 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let require = arg1;
2026-08-24 06:08:38 +00:00
initializeDefault;
2026-07-29 08:29:29 +00:00
class VoiceActionSheetManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
closure_0 = applyArgumentsResult;
applyArgumentsResult.channel = null;
applyArgumentsResult.handleOpenChannelCallModal = function handleOpenChannelCallModal() {
channel = channel.channel;
if (null != channel) {
2026-08-24 06:08:38 +00:00
closure_1_1(closure_1_2[3]).wait(() => {
const result = channel(closure_1_2[4]).dismissVoiceChannelScreens(channel);
const obj = channel(closure_1_2[4]);
channel(closure_1_2[4]).openChannelCallModal(channel);
2026-07-29 08:29:29 +00:00
});
channel.terminate();
2026-08-24 06:08:38 +00:00
const obj2 = closure_1_1(closure_1_2[3]);
2026-07-29 08:29:29 +00:00
}
};
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const prototype = VoiceActionSheetManager.prototype;
prototype["_initialize"] = function _initialize(channel) {
this.channel = channel;
2026-08-24 06:08:38 +00:00
closure_4.addChangeListener(this.handleOpenChannelCallModal);
closure_3.addChangeListener(this.handleOpenChannelCallModal);
2026-07-29 08:29:29 +00:00
};
prototype["_terminate"] = function _terminate() {
2026-08-24 06:08:38 +00:00
closure_4.removeChangeListener(this.handleOpenChannelCallModal);
closure_3.removeChangeListener(this.handleOpenChannelCallModal);
2026-07-29 08:29:29 +00:00
};
const voiceActionSheetManager = new VoiceActionSheetManager();
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/voice_calls/native/VoiceActionSheetManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default voiceActionSheetManager;