2026-09-10 19:12:31 +00:00
|
|
|
// Module ID: 7579
|
|
|
|
|
// Function ID: 7580
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: CollapsedVoiceChannelStore
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [1957, 11, 504, 573, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 19:12:31 +00:00
|
|
|
// Module 7579 (CollapsedVoiceChannelStore)
|
2026-09-10 05:38:07 +00:00
|
|
|
import SnowflakeUtilsDefault from "SnowflakeUtils" /* 11 */;
|
2026-09-05 10:56:28 +00:00
|
|
|
import initializeDefault from "initialize" /* 504 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
function handleConnectionOpen() {
|
2026-09-10 05:38:07 +00:00
|
|
|
obj = SnowflakeUtilsDefault;
|
2026-07-20 16:05:17 +00:00
|
|
|
const keys = obj.keys(obj);
|
2026-09-10 05:38:07 +00:00
|
|
|
const item = keys.forEach((item) => {
|
|
|
|
|
if (null == channel.getChannel(item)) {
|
2026-07-23 10:11:24 +00:00
|
|
|
delete tmp[tmp2];
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
let obj = {};
|
2026-08-24 06:08:38 +00:00
|
|
|
const PersistedStore = initializeDefault.PersistedStore;
|
2026-07-29 08:29:29 +00:00
|
|
|
class CollapsedVoiceChannelStore extends PersistedStore {
|
|
|
|
|
}
|
|
|
|
|
const prototype = CollapsedVoiceChannelStore.prototype;
|
|
|
|
|
prototype["initialize"] = function initialize(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
this.waitFor(ChannelStore);
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
prototype["getState"] = function getState() {
|
|
|
|
|
return obj;
|
|
|
|
|
};
|
|
|
|
|
prototype["getCollapsed"] = function getCollapsed() {
|
|
|
|
|
return obj;
|
|
|
|
|
};
|
|
|
|
|
prototype["isCollapsed"] = function isCollapsed(arg0) {
|
|
|
|
|
return obj[arg0] || false;
|
|
|
|
|
};
|
|
|
|
|
CollapsedVoiceChannelStore.displayName = "CollapsedVoiceChannelStore";
|
|
|
|
|
CollapsedVoiceChannelStore.persistKey = "collapsedChannels";
|
2026-09-10 05:38:07 +00:00
|
|
|
const collapsedVoiceChannelStore = new CollapsedVoiceChannelStore(DispatcherDefault, {
|
2026-07-20 16:05:17 +00:00
|
|
|
CONNECTION_OPEN: handleConnectionOpen,
|
|
|
|
|
OVERLAY_INITIALIZE: handleConnectionOpen,
|
|
|
|
|
CHANNEL_COLLAPSE: function handleChannelCollapse(channelId) {
|
|
|
|
|
channelId = channelId.channelId;
|
|
|
|
|
if (obj[channelId]) {
|
2026-07-23 10:11:24 +00:00
|
|
|
delete tmp[tmp2];
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp3[channelId] = true;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged = Object.assign(obj);
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
});
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("stores/CollapsedVoiceChannelStore.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default collapsedVoiceChannelStore;
|