From 055ce1ee24c860fab56587afba323395335b8d0d Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 22 Dec 2020 07:56:51 +0300 Subject: [PATCH] Fixed editing of last message on Up arrow key when message is forwarded. Fixed #9782. --- Telegram/SourceFiles/history/history_item.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index e1dce78964..517ed9a1ce 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -776,7 +776,8 @@ bool HistoryItem::canBeEditedFromHistory() const { } if ((IsServerMsgId(id) || isScheduled()) && !serviceMsg() - && (out() || history()->peer->isSelf())) { + && (out() || history()->peer->isSelf()) + && !Has()) { return true; } return false;