decord/source/modules/recent_channels/RecentChannelsActionCreators.tsx

104 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10791
// Function ID: 10792
2026-07-20 16:05:17 +00:00
// Name: _bulkClearRecents
2026-08-11 06:20:06 +00:00
// Dependencies: [5, 676, 1374, 1336, 709, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: bulkClearRecents
2026-08-24 06:08:38 +00:00
// Module 10791 (_bulkClearRecents)
import closure_3 from "asyncGeneratorStep" /* 5 */;
import { AnalyticEvents } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function _bulkClearRecents() {
2026-07-29 08:29:29 +00:00
const self = this;
const tmp = callback((arg0, arg1) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
c4 = 0;
c5 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0, arg1) {
if (c5 === 2) {
c5 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp4 === 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-07-29 08:29:29 +00:00
}
} else {
try {
c5 = 2;
if (0 === constants) {
if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 === 2) {
c5 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
closure_3 = tmp5;
dependencyMap = tmp2;
2026-07-29 08:29:29 +00:00
constants = 1;
c5 = 1;
2026-08-24 06:08:38 +00:00
obj1 = { value: null, done: false };
obj1[0] = callback(closure_1_2[2]).updateUserGuildSettings(callback, (arg0) => {
2026-07-29 08:29:29 +00:00
const Timestamp = callback(tmp2[3]).Timestamp;
arg0.guildRecentsDismissedAt = Timestamp.fromDate(new Date());
return true;
2026-08-24 06:08:38 +00:00
}, callback(closure_1_2[2]).UserSettingsDelay.INFREQUENT_USER_ACTION);
2026-07-29 08:29:29 +00:00
return obj1;
}
} else if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 === 2) {
c5 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
const obj2 = { type: "BULK_CLEAR_RECENTS", guildId: null, channelIds: null };
obj2[1] = callback;
obj2[2] = callback2;
callback2(709).dispatch(obj2);
const obj5 = callback2(709);
callback2(698).track(constants.CHANNEL_LIST_UPDATED, { action_type: "recents_dismissed" });
c5 = 3;
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} catch (tmp6) {
c5 = tmp;
throw tmp6;
}
}
})();
});
2026-08-24 06:08:38 +00:00
closure_5 = tmp;
2026-07-29 08:29:29 +00:00
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/recent_channels/RecentChannelsActionCreators.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const bulkClearRecents = function bulkClearRecents(closure_0, closure_1) {
const self = this;
const apply = _bulkClearRecents.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
};