From 2d1971123aed583ff2629bd810c0248ff7ade888 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 5 Dec 2018 14:41:54 +0400 Subject: [PATCH] Always add 'Saved messages' to index. --- Telegram/SourceFiles/data/data_peer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/data/data_peer.cpp b/Telegram/SourceFiles/data/data_peer.cpp index 2eb95c379..c8dc2315e 100644 --- a/Telegram/SourceFiles/data/data_peer.cpp +++ b/Telegram/SourceFiles/data/data_peer.cpp @@ -385,7 +385,12 @@ void PeerData::fillNames() { } appendToIndex(user->username); if (isSelf()) { - appendToIndex(lang(lng_saved_messages)); + const auto english = qsl("Saved messages"); + const auto localized = lang(lng_saved_messages); + appendToIndex(english); + if (localized != english) { + appendToIndex(localized); + } } } else if (const auto channel = asChannel()) { appendToIndex(channel->username);