mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Allow editing last sent saved message by up key.
Also update libtgvoip.
Also replace 🤷 with a shrug.
This commit is contained in:
@@ -2284,7 +2284,8 @@ HistoryItem *History::lastSentMessage() const {
|
||||
for (const auto &block : base::reversed(blocks)) {
|
||||
for (const auto &message : base::reversed(block->messages)) {
|
||||
const auto item = message->data();
|
||||
if (IsServerMsgId(item->id) && item->out()) {
|
||||
if (IsServerMsgId(item->id)
|
||||
&& (item->out() || peer->isSelf())) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user