2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Init top bar blobs geometry safely.

This commit is contained in:
John Preston
2020-12-09 15:43:54 +04:00
parent 9f2903f81d
commit 7f7ac64c6d
3 changed files with 85 additions and 86 deletions

View File

@@ -1000,6 +1000,7 @@ void MainWidget::createCallTopBar() {
(_currentCall
? object_ptr<Calls::TopBar>(this, _currentCall)
: object_ptr<Calls::TopBar>(this, _currentGroupCall)));
_callTopBar->entity()->initBlobsUnder(this, _callTopBar->geometryValue());
_callTopBar->heightValue(
) | rpl::start_with_next([this](int value) {
callTopBarHeightUpdated(value);