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

28 lines
783 B
TypeScript
Raw Normal View History

// Module ID: 18138
// Function ID: 18139
// Name: Disconnect
// Dependencies: [1958, 18139, 9225, 2]
2026-07-20 16:05:17 +00:00
// Module 18138 (Disconnect)
import CallsUtils from "CallsUtils" /* 9225 */;
import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 18139 */;
import ChannelStore from "ChannelStore" /* 1958 */;
2026-07-23 10:11:24 +00:00
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/headless_tasks/android/Disconnect.tsx");
2026-07-20 16:05:17 +00:00
export default (channelId) => {
2026-07-23 10:11:24 +00:00
channelId = channelId.channelId;
2026-07-20 16:05:17 +00:00
return new Promise((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
HeadlessTaskUtilsDefault.awaitStorage(() => {
const channel = ChannelStore.getChannel(channelId);
2026-07-20 16:05:17 +00:00
if (null != channel) {
CallsUtils.handleDisconnect(channel);
2026-07-20 16:05:17 +00:00
}
closure_0(true);
2026-07-20 16:05:17 +00:00
});
});
};