decord/source/modules/notifications/RpcNotificationSettingsStore.tsx

48 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 10191
// Function ID: 10192
2026-07-29 08:29:29 +00:00
// Name: initialize
2026-09-02 09:53:35 +00:00
// Dependencies: [1215, 586, 706, 2]
2026-07-23 10:11:24 +00:00
2026-09-02 09:53:35 +00:00
// Module 10191 (initialize)
import initializeDefault from "initialize" /* 586 */;
import dispatcherDefault from "dispatcher" /* 706 */;
import closure_0 from "fetchFingerprint" /* 1215 */;
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-08-24 06:08:38 +00:00
this.waitFor(closure_0);
2026-07-29 08:29:29 +00:00
};
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;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
return false;
};
RpcNotificationSettingsStore.displayName = "RpcNotificationSettingsStore";
2026-08-24 06:08:38 +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-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/notifications/RpcNotificationSettingsStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default rpcNotificationSettingsStore;