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

Support voice chats in legacy groups, with migration.

This commit is contained in:
John Preston
2020-12-14 16:52:18 +04:00
parent cd3b989e70
commit 1b624d67b8
30 changed files with 584 additions and 389 deletions

View File

@@ -29,6 +29,7 @@ class Session;
namespace Data {
class Session;
class GroupCall;
int PeerColorIndex(PeerId peerId);
int PeerColorIndex(int32 bareId);
@@ -202,6 +203,7 @@ public:
[[nodiscard]] rpl::producer<bool> slowmodeAppliedValue() const;
[[nodiscard]] int slowmodeSecondsLeft() const;
[[nodiscard]] bool canSendPolls() const;
[[nodiscard]] bool canManageGroupCall() const;
[[nodiscard]] UserData *asUser();
[[nodiscard]] const UserData *asUser() const;
@@ -383,6 +385,8 @@ public:
}
void setLoadedStatus(LoadedStatus status);
[[nodiscard]] Data::GroupCall *groupCall() const;
const PeerId id;
QString name;
MTPinputPeer input = MTP_inputPeerEmpty();