mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Replaced list of history items for sending now with sorted by date.
This commit is contained in:
parent
e0db0642bd
commit
b8b02b2285
1 changed files with 3 additions and 1 deletions
|
@ -2281,7 +2281,9 @@ QPointer<Ui::BoxContent> ShowSendNowMessagesBox(
|
||||||
](Fn<void()> &&close) {
|
](Fn<void()> &&close) {
|
||||||
close();
|
close();
|
||||||
auto ids = QVector<MTPint>();
|
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()) {
|
if (item->allowsSendNow()) {
|
||||||
ids.push_back(
|
ids.push_back(
|
||||||
MTP_int(session->scheduledMessages().lookupId(item)));
|
MTP_int(session->scheduledMessages().lookupId(item)));
|
||||||
|
|
Loading…
Add table
Reference in a new issue