Load more notification groups if needed on changed max_notification_group_count.

GitOrigin-RevId: 3c4095905bef8d9d3e0faf5ef131d2b5068aadc2
This commit is contained in:
levlam 2018-12-03 00:41:07 +03:00
parent 5b2377319f
commit d1384cf9e4
1 changed files with 3 additions and 4 deletions

View File

@ -1327,11 +1327,10 @@ void NotificationManager::on_notification_group_count_max_changed() {
}
max_notification_group_count_ = new_max_notification_group_count_size_t;
/*
if (is_increased && last_loaded_group_key_ < get_last_updated_group_key()) {
TODO load_notification_groups_from_database();
if (is_increased && last_loaded_notification_group_key_ < get_last_updated_group_key()) {
load_message_notification_groups_from_database(
td::max(new_max_notification_group_count, DEFAULT_GROUP_COUNT_MAX / 2), true);
}
*/
}
void NotificationManager::on_notification_group_size_max_changed() {