decord/beta/source/stores/CallChatToastsStore.tsx
github-actions 6fbb1b046c chore: update source for beta 347.8
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-22 14:21:44 +00:00

46 lines
1.4 KiB
TypeScript

// Module ID: 17090
// Function ID: 17091
// Name: CallChatToastsStore
// Dependencies: [504, 577, 2]
// Module 17090 (CallChatToastsStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 577 */;
const obj = { toastsEnabledForChannel: {} };
let closure_1 = obj;
const PersistedStore = initializeDefault.PersistedStore;
class CallChatToastsStore extends PersistedStore {
}
const prototype = CallChatToastsStore.prototype;
prototype["initialize"] = function initialize(arg0) {
let tmp = arg0;
if (arg0 == null) {
tmp = obj;
}
closure_1 = tmp;
};
prototype["getToastsEnabled"] = function getToastsEnabled(arg0) {
let flag = closure_1.toastsEnabledForChannel[arg0];
if (flag == null) {
flag = true;
}
return flag;
};
prototype["getState"] = function getState() {
return closure_1;
};
CallChatToastsStore.displayName = "CallChatToastsStore";
CallChatToastsStore.persistKey = "CallChatToasts";
const callChatToastsStore = new CallChatToastsStore(DispatcherDefault, {
CALL_CHAT_TOASTS_SET_ENABLED: function handleSetToastsEnabled(channelId) {
closure_1.toastsEnabledForChannel[channelId.channelId] = channelId.toastsEnabled;
},
LOGOUT: function handleReset() {
closure_1.toastsEnabledForChannel = {};
}
});
const size = fn(2);
const result = size.fileFinishedImporting("stores/CallChatToastsStore.tsx");
export default callChatToastsStore;