From 9dbe8ab9d01439b00a0dad5fbc914ef5aa21f484 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 20 Dec 2018 23:14:19 +0300 Subject: [PATCH] Add date to td_api::notification. GitOrigin-RevId: f1cf1ea59c9880dfa22e19e6e068f7e0af3e71df --- td/generate/scheme/td_api.tl | 4 ++-- td/generate/scheme/td_api.tlo | Bin 138760 -> 138792 bytes td/telegram/Notification.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index b7ee0b84..24edc1e2 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -1815,8 +1815,8 @@ notificationTypeNewSecretChat = NotificationType; notificationTypeNewCall call_id:int32 = NotificationType; -//@description Contains information about a notification @id Unique persistent identifier of this notification @type Notification type -notification id:int32 type:NotificationType = Notification; +//@description Contains information about a notification @id Unique persistent identifier of this notification @date Notification date @type Notification type +notification id:int32 date:int32 type:NotificationType = Notification; //@description Describes a group of notifications @id Unique persistent auto-incremented from 1 identifier of the notification group @chat_id Identifier of a chat to which all notifications in the group belong //@total_count Total number of active notifications in the group @notifications The list of active notifications diff --git a/td/generate/scheme/td_api.tlo b/td/generate/scheme/td_api.tlo index fe81076e7c9159e02629fc1fa01d718bcd6e4db0..cf9ab7ab1431ef64811e538ecf37603574c243ce 100644 GIT binary patch delta 107 zcmeC!!?9uy$A&G!EW4TQ%{T85{&QXe#Nx@zFUd^HOinDx%+F(BU;v3tUr@`aG5wA% vqrzkzYk|ouPej0)Cd)iI0MY&6$(1}XYx)KkMuqJ+f*Exf!TjYMp^PU1d^OtLcGM)qgz9ch> diff --git a/td/telegram/Notification.h b/td/telegram/Notification.h index bae23d0a..cd7b3333 100644 --- a/td/telegram/Notification.h +++ b/td/telegram/Notification.h @@ -29,7 +29,7 @@ class Notification { inline td_api::object_ptr get_notification_object(DialogId dialog_id, const Notification ¬ification) { - return td_api::make_object(notification.notification_id.get(), + return td_api::make_object(notification.notification_id.get(), notification.date, notification.type->get_notification_type_object(dialog_id)); }