14 lines
472 B
TypeScript
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);
|
|
});
|
|
});
|