Fix information about empty RTMP streams.

This commit is contained in:
John Preston 2022-02-28 22:36:08 +03:00
parent 13f1ab7965
commit de7c7aca6c

View file

@ -1603,7 +1603,7 @@ void Panel::setupEmptyRtmp() {
if (!empty) { if (!empty) {
_emptyRtmp.destroy(); _emptyRtmp.destroy();
return; return;
} else if (_emptyRtmp) { } else if (_emptyRtmp || _call->hasVideoWithFrames()) {
return; return;
} }
auto text = _call->rtmpUrl().isEmpty() auto text = _call->rtmpUrl().isEmpty()
@ -1615,6 +1615,7 @@ void Panel::setupEmptyRtmp() {
widget(), widget(),
std::move(text), std::move(text),
st::groupCallVideoLimitLabel); st::groupCallVideoLimitLabel);
_emptyRtmp->show();
widget()->sizeValue( widget()->sizeValue(
) | rpl::start_with_next([=](QSize size) { ) | rpl::start_with_next([=](QSize size) {
const auto width = std::min( const auto width = std::min(