2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Start group call bar in HistoryWidget.

This commit is contained in:
John Preston
2020-11-20 22:25:35 +03:00
parent 3aa2619a7f
commit 33941ad1b9
24 changed files with 1211 additions and 22 deletions

View File

@@ -11,6 +11,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_pts_waiter.h"
#include "data/data_location.h"
namespace Data {
class GroupCall;
} // namespace Data
struct ChannelLocation {
QString address;
Data::LocationPoint point;
@@ -393,6 +397,12 @@ public:
[[nodiscard]] QString invitePeekHash() const;
void privateErrorReceived();
[[nodiscard]] Data::GroupCall *call() const {
return _call.get();
}
void setCall(const MTPInputGroupCall &call);
void clearCall();
// Still public data members.
uint64 access = 0;
@@ -439,6 +449,8 @@ private:
QString _inviteLink;
std::optional<ChannelData*> _linkedChat;
std::unique_ptr<Data::GroupCall> _call;
int _slowmodeSeconds = 0;
TimeId _slowmodeLastMessage = 0;