diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 1bca84138..e37bce6ff 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -867,6 +867,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_manage_linked_channel_private" = "Any member of this group will be able to see messages in the channel."; "lng_manage_discussion_group_private" = "Anyone from the channel will be able to see messages in this group."; "lng_manage_discussion_group_link" = "Link group"; +"lng_manage_linked_channel_private_status" = "private channel"; "lng_manage_discussion_group_private_status" = "private group"; "lng_manage_linked_channel_about" = "{channel} is linking the group as its discussion board."; "lng_manage_linked_channel_unlink" = "Unlink channel"; diff --git a/Telegram/SourceFiles/boxes/peers/edit_linked_chat_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_linked_chat_box.cpp index 7916fc10f..49e0a768e 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_linked_chat_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_linked_chat_box.cpp @@ -80,9 +80,11 @@ void Controller::prepare() { } auto row = std::make_unique(chat); const auto username = chat->userName(); - row->setCustomStatus(username.isEmpty() - ? tr::lng_manage_discussion_group_private_status(tr::now) - : ('@' + username)); + row->setCustomStatus(!username.isEmpty() + ? ('@' + username) + : (chat->isChannel() && !chat->isMegagroup()) + ? tr::lng_manage_linked_channel_private_status(tr::now) + : tr::lng_manage_discussion_group_private_status(tr::now)); delegate()->peerListAppendRow(std::move(row)); }; if (_chat) {