diff options
author | John Preston <johnprestonmail@gmail.com> | 2018-08-21 15:31:13 +0300 |
---|---|---|
committer | John Preston <johnprestonmail@gmail.com> | 2018-08-22 09:50:36 +0300 |
commit | ec61aa0080de13b4530c422a8770f64cb3014d49 (patch) | |
tree | 5c32661660bcfbb25fc6b9efcae4424d0b56bad7 | |
parent | 4211501acfcfaa10db1e0deb400413ffd395d6cd (diff) |
Edit last non-service message on KeyUp.
-rw-r--r-- | Telegram/SourceFiles/history/history.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index ba43d9d9cd..5d10738348 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -2358,6 +2358,7 @@ HistoryItem *History::lastSentMessage() const { for (const auto &message : base::reversed(block->messages)) { const auto item = message->data(); if (IsServerMsgId(item->id) + && !item->serviceMsg() && (item->out() || peer->isSelf())) { return item; } |