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

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 17150
// Function ID: 17151
2026-07-20 16:05:17 +00:00
// Name: promise
2026-08-15 05:55:55 +00:00
// Dependencies: [685, 17148, 3975, 6798, 6795, 2]
2026-07-20 16:05:17 +00:00
2026-08-15 05:55:55 +00:00
// Module 17150 (promise)
2026-07-23 10:11:24 +00:00
import { MuteUntilSeconds } from "MAX_FAVORITES";
let result = require("t").fileFinishedImporting("modules/headless_tasks/android/MuteAction.tsx");
2026-07-20 16:05:17 +00:00
export default (arg0) => {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
return new Promise((arg0) => {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
outer1_1(outer1_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) {
let obj = outer2_1(outer2_2[2])();
2026-07-29 08:29:29 +00:00
let HOURS_1 = tmp.muteTime;
if (HOURS_1 == null) {
2026-07-23 10:11:24 +00:00
HOURS_1 = outer2_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-07-23 10:11:24 +00:00
obj = { selected_time_window: outer2_3.HOURS_1, end_time: toISOStringResult };
2026-07-29 08:29:29 +00:00
const result = outer2_1(outer2_2[3]).updateChannelOverrideSettings(tmp.guildId, tmp.channelId, obj, lib(outer2_2[4]).NotificationLabels.Muted);
2026-07-23 10:11:24 +00:00
lib(true);
2026-07-20 16:05:17 +00:00
});
});
};