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

Toggle reactions from the list under the message.

This commit is contained in:
John Preston
2021-12-21 13:23:59 +00:00
parent b5edaf4c23
commit 2991c3c17f
7 changed files with 93 additions and 6 deletions

View File

@@ -90,9 +90,11 @@ public:
explicit MessageReactions(not_null<HistoryItem*> item);
void add(const QString &reaction);
void remove();
void set(const QVector<MTPReactionCount> &list, bool ignoreChosen);
[[nodiscard]] const base::flat_map<QString, int> &list() const;
[[nodiscard]] QString chosen() const;
[[nodiscard]] bool empty() const;
private:
void sendRequest();