2026-09-18 06:58:00 +00:00
|
|
|
// Module ID: 10330
|
|
|
|
|
// Function ID: 10331
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: RpcNotificationSettingsStore
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [502, 504, 573, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-18 06:58:00 +00:00
|
|
|
// Module 10330 (RpcNotificationSettingsStore)
|
2026-09-05 10:56:28 +00:00
|
|
|
import initializeDefault from "initialize" /* 504 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
|
|
|
import AuthenticationStore from "AuthenticationStore" /* 502 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
let closure_1 = {};
|
2026-08-24 06:08:38 +00:00
|
|
|
const Store = initializeDefault.Store;
|
2026-07-29 08:29:29 +00:00
|
|
|
class RpcNotificationSettingsStore extends Store {
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const prototype = RpcNotificationSettingsStore.prototype;
|
|
|
|
|
prototype["initialize"] = function initialize() {
|
2026-09-10 05:38:07 +00:00
|
|
|
this.waitFor(AuthenticationStore);
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
prototype["areSlayerNotificationsSuppressed"] = function areSlayerNotificationsSuppressed() {
|
|
|
|
|
for (const key10002 in closure_1) {
|
2026-09-10 05:38:07 +00:00
|
|
|
if (closure_1[key10002] !== AuthenticationStore.getId()) {
|
2026-07-29 08:29:29 +00:00
|
|
|
continue;
|
|
|
|
|
} else {
|
|
|
|
|
let flag = true;
|
|
|
|
|
return true;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return false;
|
|
|
|
|
};
|
|
|
|
|
RpcNotificationSettingsStore.displayName = "RpcNotificationSettingsStore";
|
2026-09-10 05:38:07 +00:00
|
|
|
const rpcNotificationSettingsStore = new RpcNotificationSettingsStore(DispatcherDefault, {
|
2026-07-20 16:05:17 +00:00
|
|
|
RPC_APP_DISCONNECTED: function handleRpcAppDisconnected(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
delete tmp2[tmp];
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
|
|
|
|
SET_RPC_NOTIFICATION_SETTINGS: function handleSetRpcNotificationSettings(suppressNotifications) {
|
2026-07-23 10:11:24 +00:00
|
|
|
delete tmp2[tmp];
|
2026-07-20 16:05:17 +00:00
|
|
|
if (suppressNotifications.suppressNotifications) {
|
2026-07-29 08:29:29 +00:00
|
|
|
closure_1[suppressNotifications.socketId] = suppressNotifications.targetUserId;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/notifications/RpcNotificationSettingsStore.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default rpcNotificationSettingsStore;
|