mirror of https://github.com/procxx/kepka.git
Edit last non-service message on KeyUp.
This commit is contained in:
parent
4211501acf
commit
ec61aa0080
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue