From 1a7353fb43bbfe95a0b2e4ba9a43b1746a0aca6c Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 5 Jul 2017 16:23:52 +0300 Subject: [PATCH] Fix phrase in HistoryJoined for supergroups. --- Telegram/SourceFiles/history/history_service.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; }