Init pinned dialog ids in MessagesManager::add_dialog_filter.
GitOrigin-RevId: bc93ef811a5674db23900a541b2a57ca17c855fa
This commit is contained in:
parent
7f1212daab
commit
f0aaa7e81a
@ -15524,6 +15524,15 @@ void MessagesManager::add_dialog_filter(unique_ptr<DialogFilter> dialog_filter,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto &input_dialog_id : reversed(dialog_filter->pinned_dialog_ids)) {
|
||||||
|
auto dialog_id = input_dialog_id.get_dialog_id();
|
||||||
|
auto order = get_next_pinned_dialog_order();
|
||||||
|
list.pinned_dialogs_.emplace_back(order, dialog_id);
|
||||||
|
list.pinned_dialog_id_orders_.emplace(dialog_id, order);
|
||||||
|
}
|
||||||
|
std::reverse(list.pinned_dialogs_.begin(), list.pinned_dialogs_.end());
|
||||||
|
|
||||||
update_list_last_pinned_dialog_date(list);
|
update_list_last_pinned_dialog_date(list);
|
||||||
update_list_last_dialog_date(list);
|
update_list_last_dialog_date(list);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user