decord/alpha/source/stores/CallChatToastsStore.tsx

49 lines
1.4 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 17362
// Function ID: 17363
// Name: CallChatToastsStore
2026-10-03 08:58:59 +00:00
// Dependencies: [504, 584, 2]
2026-10-13 12:43:34 +00:00
// Module 17362 (CallChatToastsStore)
2026-10-03 08:58:59 +00:00
import get_initializedDefault from "get initialized" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 584 */;
import size from "module_2" /* 2 */;
let closure_1;
const obj = { toastsEnabledForChannel: {} };
2026-10-03 08:58:59 +00:00
const PersistedStore = get_initializedDefault.PersistedStore;
class CallChatToastsStore extends PersistedStore {
2026-10-03 08:58:59 +00:00
initialize(arg0) {
let tmp = arg0;
if (arg0 == null) {
tmp = obj;
}
closure_1 = tmp;
}
2026-10-03 08:58:59 +00:00
getToastsEnabled(arg0) {
let flag = closure_1.toastsEnabledForChannel[arg0];
if (flag == null) {
flag = true;
}
return flag;
}
2026-10-03 08:58:59 +00:00
getState() {
return closure_1;
}
}
const prototype = CallChatToastsStore.prototype;
CallChatToastsStore.displayName = "CallChatToastsStore";
CallChatToastsStore.persistKey = "CallChatToasts";
2026-10-03 08:58:59 +00:00
const obj2 = {
CALL_CHAT_TOASTS_SET_ENABLED: function handleSetToastsEnabled(channelId) {
closure_1.toastsEnabledForChannel[channelId.channelId] = channelId.toastsEnabled;
},
LOGOUT: function handleReset() {
closure_1.toastsEnabledForChannel = {};
}
2026-10-03 08:58:59 +00:00
};
const callChatToastsStore = new CallChatToastsStore(DispatcherDefault, obj2);
const result = size.fileFinishedImporting("stores/CallChatToastsStore.tsx");
export default callChatToastsStore;