2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Support joining to voice chats as a channel.

This commit is contained in:
John Preston
2021-03-05 12:14:34 +04:00
parent 02517f7221
commit 02e9b8fd18
18 changed files with 391 additions and 26 deletions

View File

@@ -410,6 +410,8 @@ public:
void migrateCall(std::unique_ptr<Data::GroupCall> call);
void setGroupCall(const MTPInputGroupCall &call);
void clearGroupCall();
void setGroupCallDefaultJoinAs(PeerId peerId);
[[nodiscard]] PeerId groupCallDefaultJoinAs() const;
// Still public data members.
uint64 access = 0;
@@ -458,6 +460,7 @@ private:
std::optional<ChannelData*> _linkedChat;
std::unique_ptr<Data::GroupCall> _call;
PeerId _callDefaultJoinAs = 0;
int _slowmodeSeconds = 0;
TimeId _slowmodeLastMessage = 0;