Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
// Module ID: 10215
|
|
// Function ID: 10216
|
|
// Name: RpcNotificationSettingsStore
|
|
// Dependencies: [502, 504, 573, 2]
|
|
|
|
// Module 10215 (RpcNotificationSettingsStore)
|
|
import initializeDefault from "initialize" /* 504 */;
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import AuthenticationStore from "AuthenticationStore" /* 502 */;
|
|
|
|
let closure_1 = {};
|
|
const Store = initializeDefault.Store;
|
|
class RpcNotificationSettingsStore extends Store {
|
|
}
|
|
const prototype = RpcNotificationSettingsStore.prototype;
|
|
prototype["initialize"] = function initialize() {
|
|
this.waitFor(AuthenticationStore);
|
|
};
|
|
prototype["areSlayerNotificationsSuppressed"] = function areSlayerNotificationsSuppressed() {
|
|
for (const key10002 in closure_1) {
|
|
if (closure_1[key10002] !== AuthenticationStore.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 size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/notifications/RpcNotificationSettingsStore.tsx");
|
|
|
|
export default rpcNotificationSettingsStore;
|