Voice Chat UI fixes

This commit is contained in:
Ilya Laktyushin
2020-11-26 13:29:33 +04:00
parent 82ff76bb69
commit 131f6a7b0c
3 changed files with 14 additions and 13 deletions

View File

@@ -492,7 +492,11 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|> deliverOnMainQueue).start(completed: { [weak self] in
self?._canBeRemoved.set(.single(true))
}))
} else {
} else if case .requesting = self.internalState {
self.callContext?.stop()
self.callContext = nil
self.requestDisposable.set(nil)
self._canBeRemoved.set(.single(true))
}
return self._canBeRemoved.get()
}