diff --git a/Telegram/SourceFiles/calls/calls_call.cpp b/Telegram/SourceFiles/calls/calls_call.cpp index e78dbd8e9..80712f3b9 100644 --- a/Telegram/SourceFiles/calls/calls_call.cpp +++ b/Telegram/SourceFiles/calls/calls_call.cpp @@ -368,10 +368,10 @@ void Call::setupOutgoingVideo() { _errors.fire({ ErrorType::NoCamera }); _videoOutgoing->setState(Webrtc::VideoState::Inactive); } else if (_state.current() != State::Established - && state != started - && !_videoCapture) { + && (state != Webrtc::VideoState::Inactive) + && (started == Webrtc::VideoState::Inactive)) { _errors.fire({ ErrorType::NotStartedCall }); - _videoOutgoing->setState(started); + _videoOutgoing->setState(Webrtc::VideoState::Inactive); } else if (state != Webrtc::VideoState::Inactive && _instance && !_instance->supportsVideo()) {