decord/alpha/source/modules/notifications/RpcNotificationSettingsStore.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

45 lines
1.6 KiB
TypeScript

// Module ID: 10433
// Function ID: 10434
// Name: RpcNotificationSettingsStore
// Dependencies: [502, 504, 573, 2]
// Module 10433 (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;