Edit last non-service message on KeyUp.

This commit is contained in:
John Preston 2018-08-21 15:31:13 +03:00
parent 4211501acf
commit ec61aa0080
1 changed files with 1 additions and 0 deletions

View File

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