mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Replaced list of history items for sending now with sorted by date.
This commit is contained in:
@@ -2281,7 +2281,9 @@ QPointer<Ui::BoxContent> ShowSendNowMessagesBox(
|
||||
](Fn<void()> &&close) {
|
||||
close();
|
||||
auto ids = QVector<MTPint>();
|
||||
for (const auto item : session->data().idsToItems(list)) {
|
||||
auto sorted = session->data().idsToItems(list);
|
||||
ranges::sort(sorted, ranges::less(), &HistoryItem::date);
|
||||
for (const auto &item : sorted) {
|
||||
if (item->allowsSendNow()) {
|
||||
ids.push_back(
|
||||
MTP_int(session->scheduledMessages().lookupId(item)));
|
||||
|
Reference in New Issue
Block a user