decord/source/modules/notifications/RpcNotificationSettingsStore.tsx
2026-08-24 06:08:38 +00:00

47 lines
1.5 KiB
TypeScript

// Module ID: 10059
// Function ID: 10060
// Name: initialize
// Dependencies: [1218, 589, 709, 2]
// Module 10059 (initialize)
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
import closure_0 from "fetchFingerprint" /* 1218 */;
let closure_1 = {};
const Store = initializeDefault.Store;
class RpcNotificationSettingsStore extends Store {
}
const prototype = RpcNotificationSettingsStore.prototype;
prototype["initialize"] = function initialize() {
this.waitFor(closure_0);
};
prototype["areSlayerNotificationsSuppressed"] = function areSlayerNotificationsSuppressed() {
for (const key10002 in closure_1) {
let tmp = key10002;
let tmp2 = table;
let tmp3 = id;
if (table[key10002] !== id.getId()) {
continue;
} else {
let flag = true;
return true;
}
}
return false;
};
RpcNotificationSettingsStore.displayName = "RpcNotificationSettingsStore";
const rpcNotificationSettingsStore = new RpcNotificationSettingsStore(dispatcherDefault, {
RPC_APP_DISCONNECTED: function handleRpcAppDisconnected(arg0) {
delete tmp2[tmp];
},
SET_RPC_NOTIFICATION_SETTINGS: function handleSetRpcNotificationSettings(suppressNotifications) {
delete tmp2[tmp];
if (suppressNotifications.suppressNotifications) {
closure_1[suppressNotifications.socketId] = suppressNotifications.targetUserId;
}
}
});
const result = require("set").fileFinishedImporting("modules/notifications/RpcNotificationSettingsStore.tsx");
export default rpcNotificationSettingsStore;