45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
// Module ID: 10246
|
|
// Function ID: 10247
|
|
// Name: initialize
|
|
// Dependencies: [1218, 589, 709, 2]
|
|
|
|
// Module 10246 (initialize)
|
|
import fetchFingerprint from "fetchFingerprint";
|
|
import { Store } from "initialize";
|
|
|
|
let closure_1 = {};
|
|
class RpcNotificationSettingsStore extends Store {
|
|
}
|
|
const prototype = RpcNotificationSettingsStore.prototype;
|
|
prototype["initialize"] = function initialize() {
|
|
this.waitFor(fetchFingerprint);
|
|
};
|
|
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(require("dispatcher"), {
|
|
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("dispatcher").fileFinishedImporting("modules/notifications/RpcNotificationSettingsStore.tsx");
|
|
|
|
export default rpcNotificationSettingsStore;
|