Don't show pinned tooltips if only one video.
This commit is contained in:
parent
90ff8ecd0f
commit
d1e3e7d240
|
@ -105,7 +105,9 @@ void Toasts::setupPinnedVideo() {
|
||||||
? _call->videoEndpointLargeValue()
|
? _call->videoEndpointLargeValue()
|
||||||
: rpl::single(_call->videoEndpointLarge());
|
: rpl::single(_call->videoEndpointLarge());
|
||||||
}) | rpl::flatten_latest(
|
}) | rpl::flatten_latest(
|
||||||
) | rpl::start_with_next([=](const VideoEndpoint &endpoint) {
|
) | rpl::filter([=] {
|
||||||
|
return (_call->shownVideoTracks().size() > 1);
|
||||||
|
}) | rpl::start_with_next([=](const VideoEndpoint &endpoint) {
|
||||||
const auto pinned = _call->videoEndpointPinned();
|
const auto pinned = _call->videoEndpointPinned();
|
||||||
const auto peer = endpoint.peer;
|
const auto peer = endpoint.peer;
|
||||||
if (!peer) {
|
if (!peer) {
|
||||||
|
|
Loading…
Reference in New Issue