decord/alpha/source/modules/notifications/RpcNotificationSettingsStore.tsx

46 lines
1.6 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 13081
// Function ID: 13082
// Name: RpcNotificationSettingsStore
2026-10-03 08:58:59 +00:00
// Dependencies: [502, 504, 584, 2]
2026-07-23 10:11:24 +00:00
2026-10-13 12:43:34 +00:00
// Module 13081 (RpcNotificationSettingsStore)
2026-10-03 08:58:59 +00:00
import get_initializedDefault from "get initialized" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 584 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
const Store = get_initializedDefault.Store;
2026-07-29 08:29:29 +00:00
class RpcNotificationSettingsStore extends Store {
2026-10-03 08:58:59 +00:00
initialize() {
this.waitFor(AuthenticationStore);
}
areSlayerNotificationsSuppressed() {
for (const key10002 in closure_1) {
if (closure_1[key10002] !== AuthenticationStore.getId()) {
continue;
} else {
let flag = true;
return true;
}
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
return false;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
}
const prototype = RpcNotificationSettingsStore.prototype;
2026-07-29 08:29:29 +00:00
RpcNotificationSettingsStore.displayName = "RpcNotificationSettingsStore";
2026-10-03 08:58:59 +00:00
const obj = {
2026-07-20 16:05:17 +00:00
RPC_APP_DISCONNECTED: function handleRpcAppDisconnected(arg0) {
2026-10-03 08:58:59 +00:00
delete closure_1[arg0.socketId];
2026-07-20 16:05:17 +00:00
},
SET_RPC_NOTIFICATION_SETTINGS: function handleSetRpcNotificationSettings(suppressNotifications) {
2026-10-03 08:58:59 +00:00
delete closure_1[suppressNotifications.socketId];
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-10-03 08:58:59 +00:00
};
const rpcNotificationSettingsStore = new RpcNotificationSettingsStore(DispatcherDefault, obj);
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;