From ef59720681d52b92423b877098be3a25e622c6a1 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 17 Dec 2018 19:19:05 +0300 Subject: [PATCH] Fix initialization of last_loaded_notification_group_key_. GitOrigin-RevId: 2c5b8bc28479446be6ed1f2e4070a046ca2bc1c4 --- td/telegram/NotificationManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index 0ca6a039..126d6972 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -119,9 +119,8 @@ void NotificationManager::start_up() { on_notification_cloud_delay_changed(); on_notification_default_delay_changed(); + last_loaded_notification_group_key_.last_notification_date = std::numeric_limits::max(); if (max_notification_group_count_ != 0) { - last_loaded_notification_group_key_.last_notification_date = std::numeric_limits::max(); - int32 loaded_groups = 0; int32 needed_groups = static_cast(max_notification_group_count_); do {