decord/source/modules/voice_calls/native/VoiceActionSheetManager.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

46 lines
1.8 KiB
TypeScript

// Module ID: 13792
// Function ID: 13793
// Name: VoiceActionSheetManager
// Dependencies: [1908, 4593, 1898, 573, 4781, 2]
// Module 13792 (VoiceActionSheetManager)
import DispatcherDefault from "Dispatcher" /* 573 */;
import MediaEngineStore from "MediaEngineStore" /* 1908 */;
import VoiceStateStore from "VoiceStateStore" /* 4593 */;
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(4781).dismissVoiceChannelScreens(channel);
const obj = applyArgumentsResult(4781);
applyArgumentsResult(4781).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;