57 lines
3.5 KiB
TypeScript
57 lines
3.5 KiB
TypeScript
/* Metro module 11361; source: modules/recent_channels/RecentChannelsActionCreators.tsx; dependencies: [5, 661, 1362, 1344, 694, 683, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun87047(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11547:6, offset: 0x01facc24, size: 151 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/recent_channels/RecentChannelsActionCreators.tsx');
|
|
exports.bulkClearRecents = function() {
|
|
return _bulkClearRecents.apply(this, arguments);
|
|
};
|
|
function _bulkClearRecents() { // fn#87048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11547:131, offset: 0x01faccbb, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun87050).apply(this, arguments);
|
|
function* _fun87050(a0, a1) { // fn#87050, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11547:188, offset: 0x01faccf8, size: 198 bytes, params: 3, frame: 21
|
|
var environment;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_0;
|
|
var binding2 = env2_2;
|
|
var value3 = binding(binding2[2]);
|
|
var updateUserGuildSettings = value3.updateUserGuildSettings;
|
|
var UserSettingsDelay = binding(binding2[2]).UserSettingsDelay;
|
|
var INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
|
|
yield Reflect.apply(updateUserGuildSettings, value3, [a0, _fun87051, INFREQUENT_USER_ACTION]);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_1;
|
|
var binding3 = env2_2;
|
|
binding(binding3[4]).dispatch({type: 'BULK_CLEAR_RECENTS', guildId: a0, channelIds: a1});
|
|
var value7 = binding(binding3[5]);
|
|
var track = value7.track;
|
|
var CHANNEL_LIST_UPDATED = env2_4.CHANNEL_LIST_UPDATED;
|
|
Reflect.apply(track, value7, [CHANNEL_LIST_UPDATED, {action_type: 'recents_dismissed'}]);
|
|
}
|
|
function _fun87051(a0) { // fn#87051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11547:244, offset: 0x01facdbe, size: 83 bytes, params: 2, frame: 12
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
const Timestamp = env3_0(env3_2[3]).Timestamp;
|
|
const fromDate = Timestamp.fromDate;
|
|
const Date = global.Date;
|
|
let date = new Date();
|
|
date = Reflect.apply(fromDate, Timestamp, [date]);
|
|
a0.guildRecentsDismissedAt = date;
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun87047, 11361, [5, 661, 1362, 1344, 694, 683,
|
|
2]) /* metro module 11361, dependencies: [5, 661, 1362, 1344, 694, 683, 2] */;
|