Make NotificationGroupInfo.last_notification_date_ private.
This commit is contained in:
parent
800660aec6
commit
8116952371
@ -29130,15 +29130,8 @@ MessagesManager::MessageNotificationGroup MessagesManager::get_message_notificat
|
||||
last_notification_date = result.notifications[0].date;
|
||||
last_notification_id = result.notifications[0].notification_id;
|
||||
}
|
||||
if (last_notification_date != group_info.last_notification_date_ ||
|
||||
last_notification_id != group_info.last_notification_id_) {
|
||||
LOG(ERROR) << "Fix last notification date in " << d->dialog_id << " from " << group_info.last_notification_date_
|
||||
<< " to " << last_notification_date << " and last notification identifier from "
|
||||
<< group_info.last_notification_id_ << " to " << last_notification_id << " in " << group_id
|
||||
<< " of type " << result.type;
|
||||
set_dialog_last_notification(d->dialog_id, group_info, last_notification_date, last_notification_id,
|
||||
"get_message_notification_group_force");
|
||||
}
|
||||
|
||||
std::reverse(result.notifications.begin(), result.notifications.end());
|
||||
|
||||
|
@ -15,6 +15,7 @@
|
||||
namespace td {
|
||||
|
||||
class NotificationGroupInfo {
|
||||
int32 last_notification_date_ = 0; // date of the last notification in the group
|
||||
NotificationId max_removed_notification_id_; // notification identifier, up to which all notifications are removed
|
||||
MessageId max_removed_message_id_; // message identifier, up to which all notifications are removed
|
||||
bool is_key_changed_ = false; // true, if the group needs to be saved to database
|
||||
@ -24,8 +25,7 @@ class NotificationGroupInfo {
|
||||
|
||||
public:
|
||||
NotificationGroupId group_id_;
|
||||
int32 last_notification_date_ = 0; // date of last notification in the group
|
||||
NotificationId last_notification_id_; // identifier of last notification in the group
|
||||
NotificationId last_notification_id_; // identifier of the last notification in the group
|
||||
|
||||
NotificationGroupInfo() = default;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user