decord/source/modules/recent_channels/RecentChannelsActionCreators.tsx

88 lines
2.8 KiB
TypeScript
Raw Normal View History

// Module ID: 11591
// Function ID: 11592
// Name: RecentChannelsActionCreators
// Dependencies: [5, 1074, 1940, 1217, 573, 1242, 2]
2026-07-20 16:05:17 +00:00
// Exports: bulkClearRecents
// Module 11591 (RecentChannelsActionCreators)
import UserSettingsProtoActionCreators from "UserSettingsProtoActionCreators" /* 1940 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
2026-07-23 10:11:24 +00:00
require = fn;
let closure_5 = async function _bulkClearRecents(arg0, value) {
if (c5 === 2) {
c5 = 3;
throw new TypeError("Generator functions may not be called on executing generators");
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
const obj2 = { value, done: true };
return obj2;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c5 = 2;
if (0 === c4) {
2026-07-29 08:29:29 +00:00
if (arg0 === 1) {
c5 = 3;
throw value;
2026-07-29 08:29:29 +00:00
} else if (arg0 === 2) {
c5 = 3;
const obj3 = { value, done: true };
return obj3;
2026-07-29 08:29:29 +00:00
} else {
closure_3 = tmp5;
closure_2 = tmp2;
closure_130_0 = closure_0;
closure_130_1 = closure_1;
c4 = 1;
c5 = 1;
const obj4 = {
value: UserSettingsProtoActionCreators.updateUserGuildSettings(closure_0, (arg0) => {
const Timestamp = closure_1_0(closure_1_2[3]).Timestamp;
arg0.guildRecentsDismissedAt = Timestamp.fromDate(new Date());
return true;
}, UserSettingsProtoActionCreators.UserSettingsDelay.INFREQUENT_USER_ACTION),
done: false
};
return obj4;
2026-07-29 08:29:29 +00:00
}
} else if (arg0 === 1) {
c5 = 3;
throw value;
} else if (arg0 === 2) {
c5 = 3;
const obj = { value, done: true };
return obj;
2026-07-29 08:29:29 +00:00
} else {
const obj6 = { type: "BULK_CLEAR_RECENTS", guildId: closure_130_0, channelIds: closure_130_1 };
closure_131_1(closure_131_2[4]).dispatch(obj6);
const obj5 = closure_131_1(closure_131_2[4]);
closure_131_1(closure_131_2[5]).track(closure_131_4.CHANNEL_LIST_UPDATED, { action_type: "recents_dismissed" });
c5 = 3;
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} catch (tmp6) {
c5 = tmp;
throw tmp6;
}
2026-07-29 08:29:29 +00:00
}
};
const AnalyticEvents = fn(1074).AnalyticEvents;
const size = fn(2);
const result = size.fileFinishedImporting("modules/recent_channels/RecentChannelsActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const bulkClearRecents = function bulkClearRecents() {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = closure_5.apply;
2026-07-29 08:29:29 +00:00
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
};