diff --git a/Telegram/SourceFiles/history/history_service.cpp b/Telegram/SourceFiles/history/history_service.cpp index fc20aa2a1..7018bb253 100644 --- a/Telegram/SourceFiles/history/history_service.cpp +++ b/Telegram/SourceFiles/history/history_service.cpp @@ -688,9 +688,6 @@ HistoryJoined::PreparedText HistoryJoined::GenerateText(gsl::not_null } auto result = PreparedText {}; result.links.push_back(peerOpenClickHandler(inviter)); - if (history->isMegagroup()) { - result.text = lng_action_add_you_group(lt_from, textcmdLink(1, inviter->name)); - } - result.text = lng_action_add_you(lt_from, textcmdLink(1, inviter->name)); + result.text = (history->isMegagroup() ? lng_action_add_you_group : lng_action_add_you)(lt_from, textcmdLink(1, inviter->name)); return result; }