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

Add group calls top bar.

This commit is contained in:
John Preston
2020-11-24 17:40:10 +03:00
parent 8833d3e45b
commit 41591ff2e9
10 changed files with 136 additions and 36 deletions

View File

@@ -85,6 +85,7 @@ class HistoryHider;
namespace Calls {
class Call;
class GroupCall;
class TopBar;
} // namespace Calls
@@ -257,6 +258,7 @@ private:
void playerHeightUpdated();
void setCurrentCall(Calls::Call *call);
void setCurrentGroupCall(Calls::GroupCall *call);
void createCallTopBar();
void destroyCallTopBar();
void callTopBarHeightUpdated(int callTopBarHeight);
@@ -350,6 +352,7 @@ private:
std::unique_ptr<Window::ConnectionState> _connecting;
base::weak_ptr<Calls::Call> _currentCall;
base::weak_ptr<Calls::GroupCall> _currentGroupCall;
rpl::lifetime _currentCallLifetime;
object_ptr<Ui::SlideWrap<Calls::TopBar>> _callTopBar = { nullptr };