2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 17357
|
|
|
|
|
// Function ID: 17358
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: ChannelCallManager
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [9553, 5776, 9736, 4708, 4864, 4869, 9552, 6725, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 17357 (ChannelCallManager)
|
|
|
|
|
import SoundpackStore from "SoundpackStore" /* 9553 */;
|
|
|
|
|
import CallStore from "CallStore" /* 5776 */;
|
|
|
|
|
import NotificationSettingsStore from "NotificationSettingsStore" /* 9736 */;
|
|
|
|
|
import StreamerModeStore from "StreamerModeStore" /* 4708 */;
|
|
|
|
|
import VoiceStateStore from "VoiceStateStore" /* 4864 */;
|
|
|
|
|
import SortedVoiceStateStore from "SortedVoiceStateStore" /* 4869 */;
|
|
|
|
|
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 6725 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
let require = fn;
|
2026-10-01 06:55:13 +00:00
|
|
|
const SoundUtils = fn(9552);
|
2026-09-25 08:38:05 +00:00
|
|
|
let closure_8 = SoundUtils.createSoundForPack("call_calling", SoundpackStore.getSoundpack());
|
2026-07-29 08:29:29 +00:00
|
|
|
class ChannelCallManager extends tmp2 {
|
|
|
|
|
constructor() {
|
|
|
|
|
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
|
|
|
|
closure_0 = applyArgumentsResult;
|
2026-09-25 08:38:05 +00:00
|
|
|
applyArgumentsResult._handleRing = function _handleRing(arg0) {
|
|
|
|
|
currentClientVoiceChannelId = currentClientVoiceChannelId.getCurrentClientVoiceChannelId(null);
|
|
|
|
|
let tmp2 = null != currentClientVoiceChannelId;
|
|
|
|
|
if (tmp2) {
|
|
|
|
|
tmp2 = SortedVoiceStateStore.countVoiceStatesForChannel(currentClientVoiceChannelId) >= 2;
|
|
|
|
|
}
|
|
|
|
|
if (null != currentClientVoiceChannelId) {
|
|
|
|
|
if (!tmp2) {
|
|
|
|
|
if (arg0) {
|
|
|
|
|
if (!soundDisabled.isSoundDisabled("call_calling")) {
|
|
|
|
|
if (!disableSounds.disableSounds) {
|
|
|
|
|
closure_8.loop();
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-25 08:38:05 +00:00
|
|
|
}
|
|
|
|
|
closure_8.stop();
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handleSoundpackUpdate = function handleSoundpackUpdate() {
|
|
|
|
|
closure_8.stop();
|
|
|
|
|
closure_8 = applyArgumentsResult(dependencyMap[6]).createSoundForPack("call_calling", soundpack.getSoundpack());
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handleRingUpdate = function handleRingUpdate() {
|
|
|
|
|
const calls = CallStore.getCalls();
|
|
|
|
|
applyArgumentsResult._handleRing(calls.some((ringing) => {
|
|
|
|
|
let tmp = ringing.ringing.length > 0;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
tmp = currentClientVoiceChannelId.getCurrentClientVoiceChannelId(null) === ringing.channelId;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-09-25 08:38:05 +00:00
|
|
|
return tmp;
|
|
|
|
|
}));
|
|
|
|
|
};
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
ChannelCallManager.prototype["_initialize"] = function _initialize() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = new Map().set(CallStore, this.handleRingUpdate);
|
|
|
|
|
const result1 = result.set(NotificationSettingsStore, this.handleRingUpdate);
|
|
|
|
|
const result2 = result1.set(StreamerModeStore, this.handleRingUpdate);
|
|
|
|
|
const result3 = result2.set(VoiceStateStore, this.handleRingUpdate);
|
2026-09-25 08:38:05 +00:00
|
|
|
this.stores = result3.set(SoundpackStore, this.handleSoundpackUpdate);
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
const channelCallManager = new ChannelCallManager();
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
let result = size.fileFinishedImporting("modules/calls/ChannelCallManager.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default channelCallManager;
|