From 93790e4350266b917b17164ecabd5cd94e1aae01 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 6 Jan 2019 05:37:35 +0300 Subject: [PATCH] Update documentation. GitOrigin-RevId: 9d171d943a85c04e5b357d967a1a0484d4e61f68 --- td/generate/scheme/td_api.tl | 4 ++-- td/telegram/NotificationManager.cpp | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index df004a982..b7cb2e633 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -2662,10 +2662,10 @@ getChatMessageByDate chat_id:int53 date:int32 = Message; getChatMessageCount chat_id:int53 filter:SearchMessagesFilter return_local:Bool = Count; -//@description Removes an active notification from notification list @notification_group_id Identifier of notification group to which the notification belongs @notification_id Identifier of removed notification +//@description Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user @notification_group_id Identifier of notification group to which the notification belongs @notification_id Identifier of removed notification removeNotification notification_group_id:int32 notification_id:int32 = Ok; -//@description Removes group of active notifications @notification_group_id Notification group identifier @max_notification_id Maximum identifier of removed notifications +//@description Removes a group of active notifications. Needs to be called only if the notification group is removed by the current user @notification_group_id Notification group identifier @max_notification_id Maximum identifier of removed notifications removeNotificationGroup notification_group_id:int32 max_notification_id:int32 = Ok; diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index 8448b1f2e..0ae8f12f5 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -714,7 +714,7 @@ void NotificationManager::add_update(int32 group_id, td_api::object_ptr ready_group_keys; for (const auto &it : pending_updates_) { if (include_delayed_chats || running_get_chat_difference_.count(it.first) == 0) {