Improve documentation.

GitOrigin-RevId: 103083710620ccbc93ca240acd1a75b780dff612
This commit is contained in:
levlam 2019-04-01 20:34:25 +03:00
parent bbd394ec91
commit 71d80f73bf
3 changed files with 5 additions and 3 deletions

View File

@ -1944,8 +1944,9 @@ notificationTypeNewSecretChat = NotificationType;
//@description New call was received @call_id Call identifier //@description New call was received @call_id Call identifier
notificationTypeNewCall call_id:int32 = NotificationType; notificationTypeNewCall call_id:int32 = NotificationType;
//@description New message was received through a push notification @message_id The message identifier @sender_user_id Sender of the message. Corresponding user may be inaccessible //@description New message was received through a push notification @message_id The message identifier. The message will not be available in the chat history
//@content_type Notification content type @argument Optional argument for the notification content type //@sender_user_id Sender of the message. Corresponding user may be inaccessible
//@content_type Notification content type. See https://core.telegram.org/tdlib/notification-api for the list of available content types @argument Optional argument for the notification content type
notificationTypeNewPushMessage message_id:int53 sender_user_id:int32 content_type:string argument:string = NotificationType; notificationTypeNewPushMessage message_id:int53 sender_user_id:int32 content_type:string argument:string = NotificationType;

View File

@ -10253,6 +10253,7 @@ void MessagesManager::try_restore_dialog_reply_markup(Dialog *d, const Message *
} }
void MessagesManager::set_dialog_pinned_message_notification(Dialog *d, MessageId message_id) { void MessagesManager::set_dialog_pinned_message_notification(Dialog *d, MessageId message_id) {
CHECK(d != nullptr);
auto old_message_id = d->pinned_message_notification_message_id; auto old_message_id = d->pinned_message_notification_message_id;
if (old_message_id == message_id) { if (old_message_id == message_id) {
return; return;

View File

@ -2564,7 +2564,7 @@ void NotificationManager::process_push_notification(string payload, Promise<Unit
string NotificationManager::convert_loc_key(const string &loc_key) { string NotificationManager::convert_loc_key(const string &loc_key) {
if (loc_key == "MESSAGES") { if (loc_key == "MESSAGES") {
return loc_key; return "MESSAGES";
} }
switch (loc_key[8]) { switch (loc_key[8]) {
case 'A': case 'A':