mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Edit last non-service message on KeyUp.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user