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

Show local sending messages in replies section.

This commit is contained in:
John Preston
2020-09-04 20:11:36 +04:00
parent beb623bee2
commit 78d83a2c69
11 changed files with 207 additions and 27 deletions

View File

@@ -1338,6 +1338,10 @@ void History::unregisterLocalMessage(not_null<HistoryItem*> item) {
session().changes().historyUpdated(this, UpdateFlag::LocalMessages);
}
const base::flat_set<not_null<HistoryItem*>> &History::localMessages() {
return _localMessages;
}
HistoryItem *History::latestSendingMessage() const {
auto sending = ranges::view::all(
_localMessages