2
0
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:
John Preston
2018-05-15 21:11:29 +03:00
parent 5f063c0151
commit 4bcd1e3c59
4 changed files with 13 additions and 2 deletions

View File

@@ -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;
}
}