mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fixed editing of last message with uploading media.
This commit is contained in:
parent
1a393ddebb
commit
f0a82de784
1 changed files with 2 additions and 1 deletions
|
@ -4008,7 +4008,8 @@ void ListWidget::editMessageRequestNotify(FullMsgId item) const {
|
|||
bool ListWidget::lastMessageEditRequestNotify() const {
|
||||
const auto now = base::unixtime::now();
|
||||
auto proj = [&](not_null<Element*> view) {
|
||||
return view->data()->allowsEdit(now);
|
||||
return view->data()->allowsEdit(now)
|
||||
&& !view->data()->isUploading();
|
||||
};
|
||||
const auto &list = ranges::views::reverse(_items);
|
||||
const auto it = ranges::find_if(list, std::move(proj));
|
||||
|
|
Loading…
Add table
Reference in a new issue