Improve documentation.
GitOrigin-RevId: 103083710620ccbc93ca240acd1a75b780dff612
This commit is contained in:
parent
bbd394ec91
commit
71d80f73bf
@ -1944,8 +1944,9 @@ notificationTypeNewSecretChat = NotificationType;
|
||||
//@description New call was received @call_id Call identifier
|
||||
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
|
||||
//@content_type Notification content type @argument Optional argument for the notification content type
|
||||
//@description New message was received through a push notification @message_id The message identifier. The message will not be available in the chat history
|
||||
//@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;
|
||||
|
||||
|
||||
|
@ -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) {
|
||||
CHECK(d != nullptr);
|
||||
auto old_message_id = d->pinned_message_notification_message_id;
|
||||
if (old_message_id == message_id) {
|
||||
return;
|
||||
|
@ -2564,7 +2564,7 @@ void NotificationManager::process_push_notification(string payload, Promise<Unit
|
||||
|
||||
string NotificationManager::convert_loc_key(const string &loc_key) {
|
||||
if (loc_key == "MESSAGES") {
|
||||
return loc_key;
|
||||
return "MESSAGES";
|
||||
}
|
||||
switch (loc_key[8]) {
|
||||
case 'A':
|
||||
|
Loading…
Reference in New Issue
Block a user