Add date to td_api::notification.

GitOrigin-RevId: f1cf1ea59c9880dfa22e19e6e068f7e0af3e71df
This commit is contained in:
levlam 2018-12-20 23:14:19 +03:00
parent 935466bf63
commit 9dbe8ab9d0
3 changed files with 3 additions and 3 deletions

View File

@ -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

Binary file not shown.

View File

@ -29,7 +29,7 @@ class Notification {
inline td_api::object_ptr<td_api::notification> get_notification_object(DialogId dialog_id,
const Notification &notification) {
return td_api::make_object<td_api::notification>(notification.notification_id.get(),
return td_api::make_object<td_api::notification>(notification.notification_id.get(), notification.date,
notification.type->get_notification_type_object(dialog_id));
}