summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Preston <johnprestonmail@gmail.com>2018-08-21 15:31:13 +0300
committerJohn Preston <johnprestonmail@gmail.com>2018-08-22 09:50:36 +0300
commitec61aa0080de13b4530c422a8770f64cb3014d49 (patch)
tree5c32661660bcfbb25fc6b9efcae4424d0b56bad7
parent4211501acfcfaa10db1e0deb400413ffd395d6cd (diff)
Edit last non-service message on KeyUp.
-rw-r--r--Telegram/SourceFiles/history/history.cpp1
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;
}