2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Use available reactions list from the server.

This commit is contained in:
John Preston
2021-12-07 15:11:27 +04:00
parent be74f8f2bc
commit b1668afdf1
11 changed files with 212 additions and 18 deletions

View File

@@ -410,6 +410,9 @@ public:
void setGroupCallDefaultJoinAs(PeerId peerId);
[[nodiscard]] PeerId groupCallDefaultJoinAs() const;
void setAllowedReactions(std::vector<QString> list);
[[nodiscard]] const std::vector<QString> &allowedReactions() const;
// Still public data members.
uint64 access = 0;
@@ -457,6 +460,8 @@ private:
QString _inviteLink;
std::optional<ChannelData*> _linkedChat;
std::vector<QString> _allowedReactions;
std::unique_ptr<Data::GroupCall> _call;
PeerId _callDefaultJoinAs = 0;