decord/stable/source/stores/CallChatToastsStore.tsx

49 lines
1.4 KiB
TypeScript
Raw Permalink Normal View History

2026-10-06 22:12:49 +00:00
// Module ID: 16432
// Function ID: 16433
// Name: CallChatToastsStore
2026-10-06 22:12:49 +00:00
// Dependencies: [504, 585, 2]
2026-10-06 22:12:49 +00:00
// Module 16432 (CallChatToastsStore)
import get_initializedDefault from "get initialized" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 585 */;
import size from "module_2" /* 2 */;
let closure_1;
const obj = { toastsEnabledForChannel: {} };
2026-10-06 22:12:49 +00:00
const PersistedStore = get_initializedDefault.PersistedStore;
class CallChatToastsStore extends PersistedStore {
2026-10-06 22:12:49 +00:00
initialize(arg0) {
let tmp = arg0;
if (arg0 == null) {
tmp = obj;
}
closure_1 = tmp;
}
2026-10-06 22:12:49 +00:00
getToastsEnabled(arg0) {
let flag = closure_1.toastsEnabledForChannel[arg0];
if (flag == null) {
flag = true;
}
return flag;
}
2026-10-06 22:12:49 +00:00
getState() {
return closure_1;
}
}
const prototype = CallChatToastsStore.prototype;
CallChatToastsStore.displayName = "CallChatToastsStore";
CallChatToastsStore.persistKey = "CallChatToasts";
2026-10-06 22:12:49 +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-06 22:12:49 +00:00
};
const callChatToastsStore = new CallChatToastsStore(DispatcherDefault, obj2);
const result = size.fileFinishedImporting("stores/CallChatToastsStore.tsx");
export default callChatToastsStore;