decord/source/modules/headless_tasks/android/Disconnect.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

27 lines
783 B
TypeScript

// Module ID: 18014
// Function ID: 18015
// Name: Disconnect
// Dependencies: [1957, 18015, 9174, 2]
// Module 18014 (Disconnect)
import CallsUtils from "CallsUtils" /* 9174 */;
import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 18015 */;
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);
});
});
};