Add td_api::pushMessageContentChatChangeTheme.

This commit is contained in:
levlam 2021-08-27 16:38:05 +03:00
parent 83e55b6b56
commit 532a0f4502
3 changed files with 9 additions and 0 deletions

View File

@ -2879,6 +2879,9 @@ pushMessageContentChatChangePhoto = PushMessageContent;
//@description A chat title was edited @title New chat title
pushMessageContentChatChangeTitle title:string = PushMessageContent;
//@description A chat theme was edited @theme_name Name of the new chat theme
pushMessageContentChatChangeTheme theme_name:string = PushMessageContent;
//@description A chat member was deleted @member_name Name of the deleted member @is_current_user True, if the current user was deleted from the group
//@is_left True, if the user has left the group themselves
pushMessageContentChatDeleteMember member_name:string is_current_user:Bool is_left:Bool = PushMessageContent;

View File

@ -2874,6 +2874,9 @@ string NotificationManager::convert_loc_key(const string &loc_key) {
if (loc_key == "CHAT_PHOTO_EDITED") {
return "MESSAGE_CHAT_CHANGE_PHOTO";
}
if (loc_key == "MESSAGE_THEME") {
return "MESSAGE_CHAT_CHANGE_THEME";
}
break;
case 'U':
if (loc_key == "PINNED_AUDIO") {

View File

@ -194,6 +194,9 @@ class NotificationTypePushMessage final : public NotificationType {
if (key == "MESSAGE_CHAT_CHANGE_PHOTO") {
return td_api::make_object<td_api::pushMessageContentChatChangePhoto>();
}
if (key == "MESSAGE_CHAT_CHANGE_THEME") {
return td_api::make_object<td_api::pushMessageContentChatChangeTheme>(arg);
}
if (key == "MESSAGE_CHAT_CHANGE_TITLE") {
return td_api::make_object<td_api::pushMessageContentChatChangeTitle>(arg);
}