mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed editing of last message with uploading media.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user