2020-11-20 19:25:35 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#include "ui/chat/group_call_bar.h"
|
|
|
|
|
2020-12-25 10:10:03 +00:00
|
|
|
#include "ui/chat/group_call_userpics.h"
|
2020-11-20 19:25:35 +00:00
|
|
|
#include "ui/widgets/shadow.h"
|
|
|
|
#include "ui/widgets/buttons.h"
|
2022-09-16 20:23:27 +00:00
|
|
|
#include "ui/painter.h"
|
2020-11-26 13:04:11 +00:00
|
|
|
#include "lang/lang_keys.h"
|
2021-04-05 10:29:03 +00:00
|
|
|
#include "base/unixtime.h"
|
2020-11-20 19:25:35 +00:00
|
|
|
#include "styles/style_chat.h"
|
2020-11-29 13:12:46 +00:00
|
|
|
#include "styles/style_calls.h"
|
2020-12-08 06:44:22 +00:00
|
|
|
#include "styles/style_info.h" // st::topBarArrowPadding, like TopBarWidget.
|
2020-11-20 19:25:35 +00:00
|
|
|
#include "styles/palette.h"
|
|
|
|
|
|
|
|
#include <QtGui/QtEvents>
|
|
|
|
|
|
|
|
namespace Ui {
|
2020-12-11 14:53:02 +00:00
|
|
|
|
2021-04-06 09:59:14 +00:00
|
|
|
GroupCallScheduledLeft::GroupCallScheduledLeft(TimeId date)
|
|
|
|
: _date(date)
|
|
|
|
, _datePrecise(computePreciseDate())
|
|
|
|
, _timer([=] { update(); }) {
|
|
|
|
update();
|
|
|
|
base::unixtime::updates(
|
|
|
|
) | rpl::start_with_next([=] {
|
|
|
|
restart();
|
|
|
|
}, _lifetime);
|
|
|
|
}
|
|
|
|
|
|
|
|
crl::time GroupCallScheduledLeft::computePreciseDate() const {
|
|
|
|
return crl::now() + (_date - base::unixtime::now()) * crl::time(1000);
|
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallScheduledLeft::setDate(TimeId date) {
|
|
|
|
if (_date == date) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
_date = date;
|
|
|
|
restart();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallScheduledLeft::restart() {
|
|
|
|
_datePrecise = computePreciseDate();
|
|
|
|
_timer.cancel();
|
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
2021-04-09 11:55:31 +00:00
|
|
|
rpl::producer<QString> GroupCallScheduledLeft::text(Negative negative) const {
|
|
|
|
return (negative == Negative::Show)
|
|
|
|
? _text.value()
|
|
|
|
: _textNonNegative.value();
|
|
|
|
}
|
|
|
|
|
|
|
|
rpl::producer<bool> GroupCallScheduledLeft::late() const {
|
|
|
|
return _late.value();
|
2021-04-06 09:59:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallScheduledLeft::update() {
|
|
|
|
const auto now = crl::now();
|
|
|
|
const auto duration = (_datePrecise - now);
|
2021-09-27 08:13:57 +00:00
|
|
|
const auto left = crl::time(base::SafeRound(std::abs(duration) / 1000.));
|
2021-04-09 11:55:31 +00:00
|
|
|
const auto late = (duration < 0) && (left > 0);
|
|
|
|
_late = late;
|
2021-04-06 09:59:14 +00:00
|
|
|
constexpr auto kDay = 24 * 60 * 60;
|
|
|
|
if (left >= kDay) {
|
2021-04-13 14:27:38 +00:00
|
|
|
const auto days = (left / kDay);
|
2022-03-31 16:45:11 +00:00
|
|
|
_textNonNegative = tr::lng_days(tr::now, lt_count, days);
|
2021-04-09 11:55:31 +00:00
|
|
|
_text = late
|
2022-03-31 16:45:11 +00:00
|
|
|
? tr::lng_days(tr::now, lt_count, -days)
|
2021-04-09 11:55:31 +00:00
|
|
|
: _textNonNegative.current();
|
2021-04-06 09:59:14 +00:00
|
|
|
} else {
|
|
|
|
const auto hours = left / (60 * 60);
|
|
|
|
const auto minutes = (left % (60 * 60)) / 60;
|
|
|
|
const auto seconds = (left % 60);
|
2021-04-09 11:55:31 +00:00
|
|
|
_textNonNegative = (hours > 0)
|
|
|
|
? (u"%1:%2:%3"_q
|
2021-04-06 09:59:14 +00:00
|
|
|
.arg(hours, 2, 10, QChar('0'))
|
|
|
|
.arg(minutes, 2, 10, QChar('0'))
|
2021-04-09 11:55:31 +00:00
|
|
|
.arg(seconds, 2, 10, QChar('0')))
|
|
|
|
: (u"%1:%2"_q
|
2021-04-06 09:59:14 +00:00
|
|
|
.arg(minutes, 2, 10, QChar('0'))
|
2021-04-09 11:55:31 +00:00
|
|
|
.arg(seconds, 2, 10, QChar('0')));
|
|
|
|
_text = (late ? QString(QChar(0x2212)) : QString())
|
|
|
|
+ _textNonNegative.current();
|
2021-04-06 09:59:14 +00:00
|
|
|
}
|
|
|
|
if (left >= kDay) {
|
|
|
|
_timer.callOnce((left % kDay) * crl::time(1000));
|
|
|
|
} else {
|
|
|
|
const auto fraction = (std::abs(duration) + 500) % 1000;
|
|
|
|
if (fraction < 400 || fraction > 600) {
|
|
|
|
const auto next = std::abs(duration) % 1000;
|
|
|
|
_timer.callOnce((duration < 0) ? (1000 - next) : next);
|
|
|
|
} else if (!_timer.isActive()) {
|
|
|
|
_timer.callEach(1000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-20 19:25:35 +00:00
|
|
|
GroupCallBar::GroupCallBar(
|
|
|
|
not_null<QWidget*> parent,
|
2020-12-14 16:58:22 +00:00
|
|
|
rpl::producer<GroupCallBarContent> content,
|
|
|
|
rpl::producer<bool> &&hideBlobs)
|
2020-11-24 15:12:45 +00:00
|
|
|
: _wrap(parent, object_ptr<RpWidget>(parent))
|
|
|
|
, _inner(_wrap.entity())
|
2020-12-11 14:53:02 +00:00
|
|
|
, _shadow(std::make_unique<PlainShadow>(_wrap.parentWidget()))
|
2020-12-25 10:10:03 +00:00
|
|
|
, _userpics(std::make_unique<GroupCallUserpics>(
|
|
|
|
st::historyGroupCallUserpics,
|
|
|
|
std::move(hideBlobs),
|
|
|
|
[=] { updateUserpics(); })) {
|
2020-11-20 19:25:35 +00:00
|
|
|
_wrap.hide(anim::type::instant);
|
|
|
|
_shadow->hide();
|
|
|
|
|
|
|
|
_wrap.entity()->paintRequest(
|
|
|
|
) | rpl::start_with_next([=](QRect clip) {
|
|
|
|
QPainter(_wrap.entity()).fillRect(clip, st::historyPinnedBg);
|
|
|
|
}, lifetime());
|
|
|
|
_wrap.setAttribute(Qt::WA_OpaquePaintEvent);
|
|
|
|
|
|
|
|
auto copy = std::move(
|
|
|
|
content
|
|
|
|
) | rpl::start_spawning(_wrap.lifetime());
|
|
|
|
|
|
|
|
rpl::duplicate(
|
|
|
|
copy
|
|
|
|
) | rpl::start_with_next([=](GroupCallBarContent &&content) {
|
|
|
|
_content = content;
|
2020-12-25 10:10:03 +00:00
|
|
|
_userpics->update(_content.users, !_wrap.isHidden());
|
2020-11-20 19:25:35 +00:00
|
|
|
_inner->update();
|
2021-04-06 09:59:14 +00:00
|
|
|
refreshScheduledProcess();
|
2020-11-20 19:25:35 +00:00
|
|
|
}, lifetime());
|
2021-04-06 15:19:37 +00:00
|
|
|
if (!_open && !_join) {
|
|
|
|
refreshScheduledProcess();
|
|
|
|
}
|
2020-11-20 19:25:35 +00:00
|
|
|
|
|
|
|
std::move(
|
|
|
|
copy
|
|
|
|
) | rpl::map([=](const GroupCallBarContent &content) {
|
|
|
|
return !content.shown;
|
|
|
|
}) | rpl::start_with_next_done([=](bool hidden) {
|
|
|
|
_shouldBeShown = !hidden;
|
|
|
|
if (!_forceHidden) {
|
|
|
|
_wrap.toggle(_shouldBeShown, anim::type::normal);
|
|
|
|
}
|
|
|
|
}, [=] {
|
|
|
|
_forceHidden = true;
|
|
|
|
_wrap.toggle(false, anim::type::normal);
|
|
|
|
}, lifetime());
|
|
|
|
|
|
|
|
setupInner();
|
|
|
|
}
|
|
|
|
|
2020-12-25 10:10:03 +00:00
|
|
|
GroupCallBar::~GroupCallBar() = default;
|
2020-11-20 19:25:35 +00:00
|
|
|
|
2021-04-06 09:59:14 +00:00
|
|
|
void GroupCallBar::refreshOpenBrush() {
|
|
|
|
Expects(_open != nullptr);
|
|
|
|
|
|
|
|
const auto width = _open->width();
|
|
|
|
if (_openBrushForWidth == width) {
|
|
|
|
return;
|
|
|
|
}
|
2021-04-06 14:02:43 +00:00
|
|
|
auto gradient = QLinearGradient(QPoint(width, 0), QPoint(0, 0));
|
2021-04-06 09:59:14 +00:00
|
|
|
gradient.setStops(QGradientStops{
|
|
|
|
{ 0.0, st::groupCallForceMutedBar1->c },
|
2021-04-06 14:02:43 +00:00
|
|
|
{ .7, st::groupCallForceMutedBar2->c },
|
2021-04-06 09:59:14 +00:00
|
|
|
{ 1.0, st::groupCallForceMutedBar3->c }
|
|
|
|
});
|
|
|
|
_openBrushOverride = QBrush(std::move(gradient));
|
|
|
|
_openBrushForWidth = width;
|
|
|
|
_open->setBrushOverride(_openBrushOverride);
|
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallBar::refreshScheduledProcess() {
|
|
|
|
const auto date = _content.scheduleDate;
|
|
|
|
if (!date) {
|
|
|
|
if (_scheduledProcess) {
|
|
|
|
_scheduledProcess = nullptr;
|
|
|
|
_open = nullptr;
|
2021-04-06 14:02:43 +00:00
|
|
|
_openBrushForWidth = 0;
|
2021-04-06 15:19:37 +00:00
|
|
|
}
|
|
|
|
if (!_join) {
|
2021-04-06 09:59:14 +00:00
|
|
|
_join = std::make_unique<RoundButton>(
|
|
|
|
_inner.get(),
|
|
|
|
tr::lng_group_call_join(),
|
|
|
|
st::groupCallTopBarJoin);
|
|
|
|
setupRightButton(_join.get());
|
|
|
|
}
|
|
|
|
} else if (!_scheduledProcess) {
|
|
|
|
_scheduledProcess = std::make_unique<GroupCallScheduledLeft>(date);
|
|
|
|
_join = nullptr;
|
|
|
|
_open = std::make_unique<RoundButton>(
|
|
|
|
_inner.get(),
|
2021-04-09 11:55:31 +00:00
|
|
|
_scheduledProcess->text(GroupCallScheduledLeft::Negative::Show),
|
2021-04-06 09:59:14 +00:00
|
|
|
st::groupCallTopBarOpen);
|
|
|
|
setupRightButton(_open.get());
|
|
|
|
_open->widthValue(
|
|
|
|
) | rpl::start_with_next([=] {
|
|
|
|
refreshOpenBrush();
|
|
|
|
}, _open->lifetime());
|
|
|
|
} else {
|
|
|
|
_scheduledProcess->setDate(date);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-20 19:25:35 +00:00
|
|
|
void GroupCallBar::setupInner() {
|
|
|
|
_inner->resize(0, st::historyReplyHeight);
|
|
|
|
_inner->paintRequest(
|
|
|
|
) | rpl::start_with_next([=](QRect rect) {
|
|
|
|
auto p = Painter(_inner);
|
|
|
|
paint(p);
|
|
|
|
}, _inner->lifetime());
|
|
|
|
|
|
|
|
// Clicks.
|
|
|
|
_inner->setCursor(style::cur_pointer);
|
|
|
|
_inner->events(
|
|
|
|
) | rpl::filter([=](not_null<QEvent*> event) {
|
|
|
|
return (event->type() == QEvent::MouseButtonPress);
|
|
|
|
}) | rpl::map([=] {
|
|
|
|
return _inner->events(
|
|
|
|
) | rpl::filter([=](not_null<QEvent*> event) {
|
|
|
|
return (event->type() == QEvent::MouseButtonRelease);
|
|
|
|
}) | rpl::take(1) | rpl::filter([=](not_null<QEvent*> event) {
|
|
|
|
return _inner->rect().contains(
|
|
|
|
static_cast<QMouseEvent*>(event.get())->pos());
|
|
|
|
});
|
|
|
|
}) | rpl::flatten_latest(
|
2022-03-11 05:55:21 +00:00
|
|
|
) | rpl::to_empty | rpl::start_to_stream(_barClicks, _inner->lifetime());
|
2020-11-24 15:12:45 +00:00
|
|
|
|
2021-04-06 09:59:14 +00:00
|
|
|
_wrap.geometryValue(
|
|
|
|
) | rpl::start_with_next([=](QRect rect) {
|
|
|
|
updateShadowGeometry(rect);
|
|
|
|
updateControlsGeometry(rect);
|
|
|
|
}, _inner->lifetime());
|
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallBar::setupRightButton(not_null<RoundButton*> button) {
|
2020-11-29 13:12:46 +00:00
|
|
|
rpl::combine(
|
|
|
|
_inner->widthValue(),
|
2021-04-06 09:59:14 +00:00
|
|
|
button->widthValue()
|
2020-11-29 13:12:46 +00:00
|
|
|
) | rpl::start_with_next([=](int outerWidth, int) {
|
|
|
|
// Skip shadow of the bar above.
|
|
|
|
const auto top = (st::historyReplyHeight
|
|
|
|
- st::lineWidth
|
2021-04-06 09:59:14 +00:00
|
|
|
- button->height()) / 2 + st::lineWidth;
|
|
|
|
button->moveToRight(top, top, outerWidth);
|
|
|
|
}, button->lifetime());
|
2020-11-24 15:12:45 +00:00
|
|
|
|
2021-04-06 09:59:14 +00:00
|
|
|
button->clicks() | rpl::start_to_stream(_joinClicks, button->lifetime());
|
2020-11-20 19:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallBar::paint(Painter &p) {
|
|
|
|
p.fillRect(_inner->rect(), st::historyComposeAreaBg);
|
2020-11-29 12:29:25 +00:00
|
|
|
|
2020-12-08 06:44:22 +00:00
|
|
|
const auto left = st::topBarArrowPadding.right();
|
2020-11-29 12:29:25 +00:00
|
|
|
const auto titleTop = st::msgReplyPadding.top();
|
|
|
|
const auto textTop = titleTop + st::msgServiceNameFont->height;
|
|
|
|
const auto width = _inner->width();
|
2021-04-05 10:29:03 +00:00
|
|
|
const auto &font = st::defaultMessageBar.title.font;
|
2020-11-20 19:25:35 +00:00
|
|
|
p.setPen(st::defaultMessageBar.textFg);
|
2021-04-05 10:29:03 +00:00
|
|
|
p.setFont(font);
|
|
|
|
|
2021-04-06 09:59:14 +00:00
|
|
|
const auto available = (_join ? _join->x() : _open->x()) - left;
|
2021-04-05 10:29:03 +00:00
|
|
|
const auto titleWidth = font->width(_content.title);
|
|
|
|
p.drawTextLeft(
|
|
|
|
left,
|
|
|
|
titleTop,
|
|
|
|
width,
|
|
|
|
(!_content.scheduleDate
|
2021-08-31 14:59:29 +00:00
|
|
|
? (_content.livestream
|
|
|
|
? tr::lng_group_call_title_channel
|
|
|
|
: tr::lng_group_call_title)(tr::now)
|
2021-04-05 10:29:03 +00:00
|
|
|
: _content.title.isEmpty()
|
2021-08-31 14:59:29 +00:00
|
|
|
? (_content.livestream
|
|
|
|
? tr::lng_group_call_scheduled_title_channel
|
|
|
|
: tr::lng_group_call_scheduled_title)(tr::now)
|
2021-04-05 10:29:03 +00:00
|
|
|
: (titleWidth > available)
|
|
|
|
? font->elided(_content.title, available)
|
|
|
|
: _content.title));
|
2020-12-17 10:19:33 +00:00
|
|
|
p.setPen(st::historyStatusFg);
|
2020-11-20 19:25:35 +00:00
|
|
|
p.setFont(st::defaultMessageBar.text.font);
|
2021-04-05 10:29:03 +00:00
|
|
|
const auto when = [&] {
|
|
|
|
if (!_content.scheduleDate) {
|
|
|
|
return QString();
|
|
|
|
}
|
|
|
|
const auto parsed = base::unixtime::parse(_content.scheduleDate);
|
|
|
|
const auto date = parsed.date();
|
2022-10-17 03:51:59 +00:00
|
|
|
const auto time = QLocale().toString(
|
|
|
|
parsed.time(),
|
2022-10-17 03:04:44 +00:00
|
|
|
Ui::Integration::Instance().timeFormat());
|
2021-04-05 10:29:03 +00:00
|
|
|
const auto today = QDate::currentDate();
|
|
|
|
if (date == today) {
|
|
|
|
return tr::lng_group_call_starts_today(tr::now, lt_time, time);
|
|
|
|
} else if (date == today.addDays(1)) {
|
|
|
|
return tr::lng_group_call_starts_tomorrow(
|
|
|
|
tr::now,
|
|
|
|
lt_time,
|
|
|
|
time);
|
|
|
|
} else {
|
|
|
|
return tr::lng_group_call_starts_date(
|
|
|
|
tr::now,
|
|
|
|
lt_date,
|
|
|
|
langDayOfMonthFull(date),
|
|
|
|
lt_time,
|
|
|
|
time);
|
|
|
|
}
|
|
|
|
}();
|
2020-11-29 12:29:25 +00:00
|
|
|
p.drawTextLeft(
|
|
|
|
left,
|
|
|
|
textTop,
|
|
|
|
width,
|
2021-04-05 10:29:03 +00:00
|
|
|
(_content.scheduleDate
|
|
|
|
? (_content.title.isEmpty()
|
|
|
|
? tr::lng_group_call_starts_short
|
2021-08-31 14:59:29 +00:00
|
|
|
: _content.livestream
|
|
|
|
? tr::lng_group_call_starts_channel
|
2021-04-05 10:29:03 +00:00
|
|
|
: tr::lng_group_call_starts)(tr::now, lt_when, when)
|
|
|
|
: _content.count > 0
|
2022-10-08 14:13:26 +00:00
|
|
|
? tr::lng_group_call_members(
|
|
|
|
tr::now,
|
|
|
|
lt_count_decimal,
|
|
|
|
_content.count)
|
2020-11-29 12:29:25 +00:00
|
|
|
: tr::lng_group_call_no_members(tr::now)));
|
2020-12-08 06:44:22 +00:00
|
|
|
|
2020-12-25 10:10:03 +00:00
|
|
|
const auto size = st::historyGroupCallUserpics.size;
|
2020-12-11 11:04:34 +00:00
|
|
|
// Skip shadow of the bar above.
|
2020-12-25 10:10:03 +00:00
|
|
|
const auto top = (st::historyReplyHeight - st::lineWidth - size) / 2
|
|
|
|
+ st::lineWidth;
|
|
|
|
_userpics->paint(p, _inner->width() / 2, top, size);
|
2020-11-20 19:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallBar::updateControlsGeometry(QRect wrapGeometry) {
|
|
|
|
const auto hidden = _wrap.isHidden() || !wrapGeometry.height();
|
|
|
|
if (_shadow->isHidden() != hidden) {
|
|
|
|
_shadow->setVisible(!hidden);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallBar::setShadowGeometryPostprocess(Fn<QRect(QRect)> postprocess) {
|
|
|
|
_shadowGeometryPostprocess = std::move(postprocess);
|
|
|
|
updateShadowGeometry(_wrap.geometry());
|
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallBar::updateShadowGeometry(QRect wrapGeometry) {
|
|
|
|
const auto regular = QRect(
|
|
|
|
wrapGeometry.x(),
|
|
|
|
wrapGeometry.y() + wrapGeometry.height(),
|
|
|
|
wrapGeometry.width(),
|
|
|
|
st::lineWidth);
|
|
|
|
_shadow->setGeometry(_shadowGeometryPostprocess
|
|
|
|
? _shadowGeometryPostprocess(regular)
|
|
|
|
: regular);
|
|
|
|
}
|
|
|
|
|
2020-12-11 13:16:37 +00:00
|
|
|
void GroupCallBar::updateUserpics() {
|
|
|
|
const auto widget = _wrap.entity();
|
|
|
|
const auto middle = widget->width() / 2;
|
2020-12-25 10:10:03 +00:00
|
|
|
const auto width = _userpics->maxWidth();
|
|
|
|
widget->update(
|
|
|
|
(middle - width / 2),
|
2020-12-11 13:16:37 +00:00
|
|
|
0,
|
2020-12-25 10:10:03 +00:00
|
|
|
width,
|
2020-12-11 13:16:37 +00:00
|
|
|
widget->height());
|
|
|
|
}
|
|
|
|
|
2020-11-20 19:25:35 +00:00
|
|
|
void GroupCallBar::show() {
|
|
|
|
if (!_forceHidden) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
_forceHidden = false;
|
|
|
|
if (_shouldBeShown) {
|
|
|
|
_wrap.show(anim::type::instant);
|
|
|
|
_shadow->show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallBar::hide() {
|
|
|
|
if (_forceHidden) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
_forceHidden = true;
|
|
|
|
_wrap.hide(anim::type::instant);
|
|
|
|
_shadow->hide();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallBar::raise() {
|
|
|
|
_wrap.raise();
|
|
|
|
_shadow->raise();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallBar::finishAnimating() {
|
|
|
|
_wrap.finishAnimating();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallBar::move(int x, int y) {
|
|
|
|
_wrap.move(x, y);
|
|
|
|
}
|
|
|
|
|
|
|
|
void GroupCallBar::resizeToWidth(int width) {
|
|
|
|
_wrap.entity()->resizeToWidth(width);
|
2020-12-11 14:53:02 +00:00
|
|
|
_inner->resizeToWidth(width);
|
2020-11-20 19:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int GroupCallBar::height() const {
|
|
|
|
return !_forceHidden
|
|
|
|
? _wrap.height()
|
|
|
|
: _shouldBeShown
|
|
|
|
? st::historyReplyHeight
|
|
|
|
: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
rpl::producer<int> GroupCallBar::heightValue() const {
|
|
|
|
return _wrap.heightValue();
|
|
|
|
}
|
|
|
|
|
|
|
|
rpl::producer<> GroupCallBar::barClicks() const {
|
|
|
|
return _barClicks.events();
|
|
|
|
}
|
|
|
|
|
|
|
|
rpl::producer<> GroupCallBar::joinClicks() const {
|
2021-04-06 09:59:14 +00:00
|
|
|
return _joinClicks.events() | rpl::to_empty;
|
2020-11-20 19:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Ui
|