Fix shadow of group call bar.

This commit is contained in:
John Preston 2020-11-24 18:12:45 +03:00
parent 41591ff2e9
commit 267c2d32f0
2 changed files with 13 additions and 3 deletions

View file

@ -1250,6 +1250,9 @@ void HistoryWidget::orderWidgets() {
if (_contactStatus) {
_contactStatus->raise();
}
if (_groupCallBar) {
_groupCallBar->raise();
}
if (_pinnedBar) {
_pinnedBar->raise();
}

View file

@ -89,6 +89,13 @@ void GroupCallBar::setupInner() {
) | rpl::map([] {
return rpl::empty_value();
}) | rpl::start_to_stream(_barClicks, _inner->lifetime());
_wrap.geometryValue(
) | rpl::start_with_next([=](QRect rect) {
updateShadowGeometry(rect);
updateControlsGeometry(rect);
}, _inner->lifetime());
}
void GroupCallBar::paint(Painter &p) {