decord/source/modules/headless_tasks/android/Disconnect.tsx
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

27 lines
783 B
TypeScript

// Module ID: 18044
// Function ID: 18045
// Name: Disconnect
// Dependencies: [1957, 18045, 9211, 2]
// Module 18044 (Disconnect)
import CallsUtils from "CallsUtils" /* 9211 */;
import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 18045 */;
import ChannelStore from "ChannelStore" /* 1957 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/headless_tasks/android/Disconnect.tsx");
export default (channelId) => {
channelId = channelId.channelId;
return new Promise((arg0) => {
closure_0 = arg0;
HeadlessTaskUtilsDefault.awaitStorage(() => {
const channel = ChannelStore.getChannel(channelId);
if (null != channel) {
CallsUtils.handleDisconnect(channel);
}
closure_0(true);
});
});
};