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