decord/source/modules/headless_tasks/android/Disconnect.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

27 lines
783 B
TypeScript

// Module ID: 18138
// Function ID: 18139
// Name: Disconnect
// Dependencies: [1958, 18139, 9225, 2]
// Module 18138 (Disconnect)
import CallsUtils from "CallsUtils" /* 9225 */;
import HeadlessTaskUtilsDefault from "HeadlessTaskUtils" /* 18139 */;
import ChannelStore from "ChannelStore" /* 1958 */;
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);
});
});
};