2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 14698
|
|
|
|
|
// Function ID: 14699
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: toggleVoiceChannelChat
|
2026-10-09 10:00:15 +00:00
|
|
|
// Dependencies: [2064, 5109, 6043, 5105, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: toggleVoiceChannelChat
|
|
|
|
|
|
2026-10-09 10:00:15 +00:00
|
|
|
// Module 14698 (toggleVoiceChannelChat)
|
|
|
|
|
import ChannelRTCActionCreatorsDefault from "ChannelRTCActionCreators" /* 5105 */;
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 2064 */;
|
|
|
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 5109 */;
|
|
|
|
|
import ChannelRTCStore from "ChannelRTCStore" /* 6043 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/calls/toggleVoiceChannelChat.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const toggleVoiceChannelChat = function toggleVoiceChannelChat(open) {
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = RTCConnectionStore;
|
2026-09-10 05:38:07 +00:00
|
|
|
if (RTCConnectionStore.isConnected()) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const channelId = obj.getChannelId();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null == channelId) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
const channel = ChannelStore.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) {
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp3 = !ChannelRTCStore.getChatOpen(channelId);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj3 = ChannelRTCActionCreatorsDefault;
|
|
|
|
|
obj3.updateChatOpen(channelId, tmp3);
|
|
|
|
|
return { channelId, chatOpen: tmp3 };
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
};
|