Files
discord-decomp/modules/headless_tasks/android/Disconnect.tsx
T
2026-11-01 12:12:55 +02:00

14 lines
472 B
TypeScript

// Metro module 16768 (f16769).
import ChannelStore from "../../../stores/ChannelStore";
import HeadlessTaskUtils from "../HeadlessTaskUtils";
import { handleDisconnect } from "../../voice_calls/native/CallsUtils";
module.exports = ({ channelId }) => new Promise((c28532_0) => {
HeadlessTaskUtils.awaitStorage(() => {
const channel = ChannelStore.getChannel(channelId);
if (channel != null) {
handleDisconnect(channel);
}
c28532_0(true);
});
});