Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
57 lines
1.8 KiB
TypeScript
57 lines
1.8 KiB
TypeScript
// Module ID: 6942
|
|
// Function ID: 6943
|
|
// Name: CollapsedVoiceChannelStore
|
|
// Dependencies: [2044, 11, 504, 573, 2]
|
|
|
|
// Module 6942 (CollapsedVoiceChannelStore)
|
|
import SnowflakeUtilsDefault from "SnowflakeUtils" /* 11 */;
|
|
import initializeDefault from "initialize" /* 504 */;
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import ChannelStore from "ChannelStore" /* 2044 */;
|
|
|
|
function handleConnectionOpen() {
|
|
obj = SnowflakeUtilsDefault;
|
|
const keys = obj.keys(obj);
|
|
const item = keys.forEach((item) => {
|
|
if (null == channel.getChannel(item)) {
|
|
delete tmp[tmp2];
|
|
}
|
|
});
|
|
}
|
|
let obj = {};
|
|
const PersistedStore = initializeDefault.PersistedStore;
|
|
class CollapsedVoiceChannelStore extends PersistedStore {
|
|
}
|
|
const prototype = CollapsedVoiceChannelStore.prototype;
|
|
prototype["initialize"] = function initialize(arg0) {
|
|
this.waitFor(ChannelStore);
|
|
};
|
|
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";
|
|
const collapsedVoiceChannelStore = new CollapsedVoiceChannelStore(DispatcherDefault, {
|
|
CONNECTION_OPEN: handleConnectionOpen,
|
|
OVERLAY_INITIALIZE: handleConnectionOpen,
|
|
CHANNEL_COLLAPSE: function handleChannelCollapse(channelId) {
|
|
channelId = channelId.channelId;
|
|
if (obj[channelId]) {
|
|
delete tmp[tmp2];
|
|
} else {
|
|
tmp3[channelId] = true;
|
|
}
|
|
obj = {};
|
|
const merged = Object.assign(obj);
|
|
}
|
|
});
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("stores/CollapsedVoiceChannelStore.tsx");
|
|
|
|
export default collapsedVoiceChannelStore;
|