decord/source/modules/headless_tasks/android/MuteAction.tsx

35 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 17244
// Function ID: 17245
2026-07-20 16:05:17 +00:00
// Name: promise
2026-08-24 06:08:38 +00:00
// Dependencies: [685, 17242, 3978, 6835, 6832, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 17244 (promise)
import set from "set" /* 2 */;
import MAX_FAVORITES from "MAX_FAVORITES" /* 685 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const MuteUntilSeconds = MAX_FAVORITES.MuteUntilSeconds;
let result = set.fileFinishedImporting("modules/headless_tasks/android/MuteAction.tsx");
2026-07-20 16:05:17 +00:00
export default (arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-20 16:05:17 +00:00
return new Promise((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1_1(closure_1_2[1]).awaitStorage(() => {
2026-07-20 16:05:17 +00:00
let toISOStringResult = null;
2026-07-23 10:11:24 +00:00
if (-1 !== lib.muteTime) {
2026-08-24 06:08:38 +00:00
let obj = closure_2_1(closure_2_2[2])();
2026-07-29 08:29:29 +00:00
let HOURS_1 = tmp.muteTime;
if (HOURS_1 == null) {
2026-08-24 06:08:38 +00:00
HOURS_1 = closure_2_3.HOURS_1;
2026-07-20 16:05:17 +00:00
}
toISOStringResult = obj.add(HOURS_1, "second").toISOString();
const addResult = obj.add(HOURS_1, "second");
}
obj = { muted: true, mute_config: obj };
2026-08-24 06:08:38 +00:00
obj = { selected_time_window: closure_2_3.HOURS_1, end_time: toISOStringResult };
const result = closure_2_1(closure_2_2[3]).updateChannelOverrideSettings(tmp.guildId, tmp.channelId, obj, lib(closure_2_2[4]).NotificationLabels.Muted);
2026-07-23 10:11:24 +00:00
lib(true);
2026-07-20 16:05:17 +00:00
});
});
};