2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Changed Up arrow shortcut for albums to edit item with caption.

Fixed #10134.
This commit is contained in:
23rd
2021-01-18 18:04:03 +03:00
committed by John Preston
parent ad761011d6
commit eb42a77eb7
5 changed files with 26 additions and 3 deletions

View File

@@ -558,8 +558,11 @@ HistoryItem *ScheduledMessages::lastEditableMessage(
auto proj = [&](const OwnedItem &item) {
return item->allowsEdit(now);
};
const auto it = ranges::find_if(items, std::move(proj));
return (it == end(items)) ? nullptr : (*it).get();
return (it == end(items))
? nullptr
: history->owner().groups().findItemToEdit((*it).get());
}
} // namespace Data