mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't show pinned tooltips if only one video.
This commit is contained in:
parent
90ff8ecd0f
commit
d1e3e7d240
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue