decord/source/modules/voice_calls/native/VoiceActionSheetManager.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

46 lines
1.8 KiB
TypeScript

// Module ID: 13854
// Function ID: 13855
// Name: VoiceActionSheetManager
// Dependencies: [1908, 4655, 1898, 573, 4843, 2]
// Module 13854 (VoiceActionSheetManager)
import DispatcherDefault from "Dispatcher" /* 573 */;
import MediaEngineStore from "MediaEngineStore" /* 1908 */;
import VoiceStateStore from "VoiceStateStore" /* 4655 */;
import LifecycleManager from "LifecycleManager" /* 1898 */;
let require = fn;
class VoiceActionSheetManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
closure_0 = applyArgumentsResult;
applyArgumentsResult.channel = null;
applyArgumentsResult.handleOpenChannelCallModal = function handleOpenChannelCallModal() {
const channel = applyArgumentsResult.channel;
if (null != channel) {
DispatcherDefault.wait(() => {
const result = applyArgumentsResult(4843).dismissVoiceChannelScreens(channel);
const obj = applyArgumentsResult(4843);
applyArgumentsResult(4843).openChannelCallModal(channel);
});
applyArgumentsResult.terminate();
}
};
return applyArgumentsResult;
}
}
const prototype = VoiceActionSheetManager.prototype;
prototype["_initialize"] = function _initialize(channel) {
this.channel = channel;
VoiceStateStore.addChangeListener(this.handleOpenChannelCallModal);
MediaEngineStore.addChangeListener(this.handleOpenChannelCallModal);
};
prototype["_terminate"] = function _terminate() {
VoiceStateStore.removeChangeListener(this.handleOpenChannelCallModal);
MediaEngineStore.removeChangeListener(this.handleOpenChannelCallModal);
};
const voiceActionSheetManager = new VoiceActionSheetManager();
const size = fn(2);
let result = size.fileFinishedImporting("modules/voice_calls/native/VoiceActionSheetManager.tsx");
export default voiceActionSheetManager;