47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
// Module ID: 10195
|
|
// Function ID: 10196
|
|
// Name: initialize
|
|
// Dependencies: [1215, 586, 706, 2]
|
|
|
|
// Module 10195 (initialize)
|
|
import initializeDefault from "initialize" /* 586 */;
|
|
import dispatcherDefault from "dispatcher" /* 706 */;
|
|
import closure_0 from "fetchFingerprint" /* 1215 */;
|
|
|
|
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;
|