mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Always add 'Saved messages' to index.
This commit is contained in:
parent
efe3dfad5c
commit
2d1971123a
1 changed files with 6 additions and 1 deletions
|
@ -385,7 +385,12 @@ void PeerData::fillNames() {
|
||||||
}
|
}
|
||||||
appendToIndex(user->username);
|
appendToIndex(user->username);
|
||||||
if (isSelf()) {
|
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()) {
|
} else if (const auto channel = asChannel()) {
|
||||||
appendToIndex(channel->username);
|
appendToIndex(channel->username);
|
||||||
|
|
Loading…
Add table
Reference in a new issue