Add td_api::pushMessageContentChatChangeTheme.
This commit is contained in:
parent
83e55b6b56
commit
532a0f4502
@ -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;
|
||||
|
@ -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") {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user