Add pushMessageContentChatJoinByRequest.

This commit is contained in:
levlam 2021-11-01 17:17:08 +03:00
parent a3b71ca82c
commit fd0de189f8
3 changed files with 9 additions and 0 deletions

View File

@ -2933,6 +2933,9 @@ pushMessageContentChatDeleteMember member_name:string is_current_user:Bool is_le
//@description A new member joined the chat by invite link
pushMessageContentChatJoinByLink = PushMessageContent;
//@description A new member was accepted to the chat by an administrator
pushMessageContentChatJoinByRequest = PushMessageContent;
//@description A forwarded messages @total_count Number of forwarded messages
pushMessageContentMessageForwards total_count:int32 = PushMessageContent;

View File

@ -2911,6 +2911,9 @@ string NotificationManager::convert_loc_key(const string &loc_key) {
if (loc_key == "CHAT_ADD_YOU") {
return "MESSAGE_CHAT_ADD_MEMBERS_YOU";
}
if (loc_key == "CHAT_REQ_JOINED") {
return "MESSAGE_CHAT_JOIN_BY_REQUEST";
}
break;
}
return string();

View File

@ -213,6 +213,9 @@ class NotificationTypePushMessage final : public NotificationType {
if (key == "MESSAGE_CHAT_JOIN_BY_LINK") {
return td_api::make_object<td_api::pushMessageContentChatJoinByLink>();
}
if (key == "MESSAGE_CHAT_JOIN_BY_REQUEST") {
return td_api::make_object<td_api::pushMessageContentChatJoinByRequest>();
}
if (key == "MESSAGE_CONTACT") {
return td_api::make_object<td_api::pushMessageContentContact>(arg, is_pinned);
}