From ec61aa0080de13b4530c422a8770f64cb3014d49 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 21 Aug 2018 15:31:13 +0300 Subject: [PATCH] Edit last non-service message on KeyUp. --- Telegram/SourceFiles/history/history.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index ba43d9d9c..5d1073834 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; }