mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Edit last non-service message on KeyUp.
This commit is contained in:
parent
4211501acf
commit
ec61aa0080
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue