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; }