decord/source/actions/SelectedChannelActionCreators.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

68 lines
2.4 KiB
TypeScript

// Module ID: 5372
// Function ID: 5373
// Dependencies: [4498, 1386, 4532, 673, 5373, 706, 1219, 9377, 2]
// Module 5372
import dispatcherDefault from "dispatcher" /* 706 */;
import transitionTo from "transitionTo" /* 1219 */;
import getChannelSelectionOrigin from "getChannelSelectionOrigin" /* 5373 */;
import disconnectRemoteAll from "disconnectRemote" /* 9377 */;
import closure_4 from "set" /* 4498 */;
import closure_5 from "ensureGuildLoaded" /* 1386 */;
import closure_6 from "_detectH265HardwareDecode" /* 4532 */;
import ME from "ME" /* 673 */;
require = arg1;
({ ME: error, PopoutWindowKeys, Routes: closure_8 } = ME);
const result = require("set").fileFinishedImporting("actions/SelectedChannelActionCreators.tsx");
export default {
selectChannel(guildId) {
guildId = guildId.guildId;
({ channelId, messageId, jumpType, source, skipMessageFetch, opensChannel } = guildId);
const channelSelectionOrigin = getChannelSelectionOrigin.getChannelSelectionOrigin();
({ fromGuildId, fromChannelId } = channelSelectionOrigin);
const obj = getChannelSelectionOrigin;
let tmp2 = null;
if (guildId !== closure_7) {
tmp2 = guildId;
}
dispatcherDefault.dispatch({ type: "CHANNEL_SELECT", guildId: tmp2, channelId, fromGuildId, fromChannelId, messageId, jumpType, source, skipMessageFetch, opensChannel });
},
selectPrivateChannel(id) {
transitionTo.transitionTo(closure_8.CHANNEL(closure_7, id));
},
selectVoiceChannel(id, c1, flag2) {
let flag = c1;
if (c1 === undefined) {
flag = false;
}
if (flag2 === undefined) {
flag2 = false;
}
let obj = arg3;
if (arg3 === undefined) {
obj = {};
}
channel = channel.getChannel(id);
if (channel != null) {
const guildId = channel.getGuildId();
}
if (supported.isSupported()) {
if (null != id) {
const mediaEngine = supported.getMediaEngine();
mediaEngine.interact();
}
const obj5 = getChannelSelectionOrigin;
const voiceChannelAdditional = obj5.selectVoiceChannelAdditional(id, guildId, flag, flag2, obj);
}
},
disconnect() {
remoteSessionId = remoteSessionId.getRemoteSessionId();
if (null != remoteSessionId) {
disconnectRemoteAll.remoteDisconnect(remoteSessionId);
const obj = disconnectRemoteAll;
}
const voiceChannel = this.selectVoiceChannel(null);
}
};