mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +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)) {
|
for (const auto &message : base::reversed(block->messages)) {
|
||||||
const auto item = message->data();
|
const auto item = message->data();
|
||||||
if (IsServerMsgId(item->id)
|
if (IsServerMsgId(item->id)
|
||||||
|
&& !item->serviceMsg()
|
||||||
&& (item->out() || peer->isSelf())) {
|
&& (item->out() || peer->isSelf())) {
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user