decord/source/modules/saved_messages/SavedMessagesManager.tsx

107 lines
3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16792
// Function ID: 16793
2026-08-11 06:20:06 +00:00
// Name: _refreshSavedMessages
2026-08-24 06:08:38 +00:00
// Dependencies: [5, 8523, 10913, 16793, 5043, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 16792 (_refreshSavedMessages)
import initializeDefault from "initialize" /* 5043 */;
import closure_2 from "asyncGeneratorStep" /* 5 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let require = arg1;
2026-08-11 06:20:06 +00:00
function _refreshSavedMessages() {
const self = this;
const tmp = callback(function*() {
if (c2 === 2) {
c2 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-08-11 06:20:06 +00:00
}
} else {
try {
c2 = 2;
if (0 === dependencyMap) {
if (arg0 === 1) {
c2 = 3;
throw arg1;
} else if (arg0 === 2) {
c2 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
const callback = tmp4;
2026-08-24 06:08:38 +00:00
let obj2 = closure_1_0(8523);
2026-08-11 06:20:06 +00:00
if (obj2.isForLaterExperimentOn("saved_messages_manager")) {
dependencyMap = 1;
c2 = 1;
2026-08-24 06:08:38 +00:00
obj1 = { value: null, done: false };
obj1[0] = closure_1_0(10913).fetchAndUpdateSavedMessages();
2026-08-11 06:20:06 +00:00
return obj1;
} else {
c2 = 3;
}
}
} else if (arg0 === 1) {
c2 = 3;
throw arg1;
} else if (arg0 !== 2) {
2026-08-24 06:08:38 +00:00
obj = callback(16793);
2026-08-11 06:20:06 +00:00
const result = obj.showOverdueRemindersToast();
}
c2 = 3;
obj2 = { value: null, done: true };
obj2[0] = arg1;
return obj2;
} catch (tmp13) {
c2 = tmp;
throw tmp13;
}
}
});
2026-08-24 06:08:38 +00:00
closure_3 = tmp;
2026-08-11 06:20:06 +00:00
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
2026-08-24 06:08:38 +00:00
initializeDefault;
2026-07-29 08:29:29 +00:00
let prototype = function SavedMessagesManager() {
2026-08-11 06:20:06 +00:00
let applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
2026-08-24 06:08:38 +00:00
require = applyArgumentsResult;
2026-07-29 08:29:29 +00:00
applyArgumentsResult.actions = {
POST_CONNECTION_OPEN() {
return applyArgumentsResult.handlePostConnectionOpen();
}
};
applyArgumentsResult.handlePostConnectionOpen = function handlePostConnectionOpen() {
2026-08-11 06:20:06 +00:00
!(function refreshSavedMessages() {
const self = this;
const apply = closure_3.apply;
if (typeof apply === "unknown") {
2026-08-24 06:08:38 +00:00
applyArgumentsResult = HermesBuiltin.applyArguments(self);
2026-08-11 06:20:06 +00:00
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
})();
2026-07-29 08:29:29 +00:00
};
return applyArgumentsResult;
}.prototype;
class prototype extends tmp2 {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
prototype = new prototype();
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/saved_messages/SavedMessagesManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default prototype;