2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 13945
|
|
|
|
|
// Function ID: 13946
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: toggleVoiceChannelChat
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [1391, 4544, 4778, 8703, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: toggleVoiceChannelChat
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 13945 (toggleVoiceChannelChat)
|
|
|
|
|
import _modDef8703 from "module_8703" /* 8703 */;
|
|
|
|
|
import closure_2 from "ensureGuildLoaded" /* 1391 */;
|
|
|
|
|
import closure_3 from "createRTCConnection" /* 4544 */;
|
|
|
|
|
import closure_4 from "getParticipants" /* 4778 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/calls/toggleVoiceChannelChat.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const toggleVoiceChannelChat = function toggleVoiceChannelChat(open) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = connected;
|
|
|
|
|
if (connected.isConnected()) {
|
|
|
|
|
const channelId = obj.getChannelId();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null == channelId) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
channel = channel.getChannel(channelId);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != channel) {
|
|
|
|
|
if (channel.isGuildVoice()) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp3 = open;
|
|
|
|
|
if (open == null) {
|
|
|
|
|
tmp3 = !chatOpen.getChatOpen(channelId);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
_modDef8703.updateChatOpen(channelId, tmp3);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { channelId: null, chatOpen: null };
|
|
|
|
|
obj[0] = channelId;
|
|
|
|
|
obj[1] = tmp3;
|
2026-07-20 16:05:17 +00:00
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
};
|