2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Show reactions in messages.

This commit is contained in:
John Preston
2019-09-11 13:55:39 +03:00
parent f5c7b206bb
commit 3a43217301
8 changed files with 68 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history.h"
#include "history/history_item.h"
#include "main/main_session.h"
#include "data/data_session.h"
#include "apiwrap.h"
namespace Data {
@@ -48,6 +49,7 @@ void MessageReactions::add(const QString &reaction) {
++_list[reaction];
}
sendRequest();
_item->history()->owner().requestItemResize(_item);
}
void MessageReactions::set(
@@ -80,6 +82,7 @@ void MessageReactions::set(
_chosen = QString();
}
}
_item->history()->owner().requestItemResize(_item);
}
const base::flat_map<QString, int> &MessageReactions::list() const {