[Improvement] Restore supergroup convert message
This commit is contained in:
parent
5cc1a5da1b
commit
7d0daf1e3c
2 changed files with 7 additions and 2 deletions
|
|
@ -1422,6 +1422,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
"lng_action_ttl_removed_you" = "You disabled the auto-delete timer";
|
||||
"lng_action_ttl_removed_channel" = "New messages will not auto-delete";
|
||||
"lng_action_created_channel" = "Channel created";
|
||||
"lng_action_group_migrate" = "The group was upgraded to a supergroup";
|
||||
"lng_action_pinned_message" = "{from} pinned «{text}»";
|
||||
"lng_action_pinned_media" = "{from} pinned {media}";
|
||||
"lng_action_pinned_media_photo" = "a photo";
|
||||
|
|
|
|||
|
|
@ -655,9 +655,13 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) {
|
|||
}, [&](const MTPDmessageActionChatCreate &data) {
|
||||
return prepareChatCreate(data);
|
||||
}, [](const MTPDmessageActionChatMigrateTo &) {
|
||||
return PreparedText();
|
||||
return PreparedText{
|
||||
tr::lng_action_group_migrate(tr::now, Ui::Text::WithEntities)
|
||||
};
|
||||
}, [](const MTPDmessageActionChannelMigrateFrom &) {
|
||||
return PreparedText();
|
||||
return PreparedText{
|
||||
tr::lng_action_group_migrate(tr::now, Ui::Text::WithEntities)
|
||||
};
|
||||
}, [](const MTPDmessageActionHistoryClear &) {
|
||||
return PreparedText();
|
||||
}, [&](const MTPDmessageActionChannelCreate &data) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue