Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
87 lines
2.8 KiB
TypeScript
87 lines
2.8 KiB
TypeScript
// Module ID: 11591
|
|
// Function ID: 11592
|
|
// Name: RecentChannelsActionCreators
|
|
// Dependencies: [5, 1074, 1940, 1217, 573, 1242, 2]
|
|
// Exports: bulkClearRecents
|
|
|
|
// Module 11591 (RecentChannelsActionCreators)
|
|
import UserSettingsProtoActionCreators from "UserSettingsProtoActionCreators" /* 1940 */;
|
|
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
|
|
|
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) {
|
|
if (arg0 === 1) {
|
|
c5 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c5 = 3;
|
|
const obj3 = { value, done: true };
|
|
return obj3;
|
|
} 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;
|
|
}
|
|
} else if (arg0 === 1) {
|
|
c5 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c5 = 3;
|
|
const obj = { value, done: true };
|
|
return obj;
|
|
} 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 };
|
|
}
|
|
} catch (tmp6) {
|
|
c5 = tmp;
|
|
throw tmp6;
|
|
}
|
|
}
|
|
};
|
|
const AnalyticEvents = fn(1074).AnalyticEvents;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/recent_channels/RecentChannelsActionCreators.tsx");
|
|
|
|
export const bulkClearRecents = function bulkClearRecents() {
|
|
const self = this;
|
|
const apply = closure_5.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
};
|