Fixed editing of last message on Up arrow key when message is forwarded.

Fixed #9782.
This commit is contained in:
23rd 2020-12-22 07:56:51 +03:00
parent c14313d64a
commit 055ce1ee24
1 changed files with 2 additions and 1 deletions

View File

@ -776,7 +776,8 @@ bool HistoryItem::canBeEditedFromHistory() const {
}
if ((IsServerMsgId(id) || isScheduled())
&& !serviceMsg()
&& (out() || history()->peer->isSelf())) {
&& (out() || history()->peer->isSelf())
&& !Has<HistoryMessageForwarded>()) {
return true;
}
return false;