decord/source/modules/notifications/RpcNotificationSettingsStore.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

47 lines
1.5 KiB
TypeScript

// Module ID: 10091
// Function ID: 10092
// Name: initialize
// Dependencies: [502, 504, 573, 2]
// Module 10091 (initialize)
import initializeDefault from "initialize" /* 504 */;
import dispatcherDefault from "dispatcher" /* 573 */;
import closure_0 from "fetchFingerprint" /* 502 */;
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;