2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Ignore accents in contacts list sorting.

This commit is contained in:
John Preston
2021-02-19 15:54:27 +04:00
parent 0a678ae8bd
commit f9f52302bb
8 changed files with 36 additions and 6 deletions

View File

@@ -50,7 +50,8 @@ Folder::Folder(not_null<Data::Session*> owner, FolderId id)
&owner->session(),
FilterId(),
owner->session().serverConfig().pinnedDialogsInFolderMax.value())
, _name(tr::lng_archived_name(tr::now)) {
, _name(tr::lng_archived_name(tr::now))
, _chatListNameSortKey(owner->nameSortKey(_name)) {
indexNameParts();
session().changes().peerUpdates(
@@ -408,4 +409,8 @@ const base::flat_set<QChar> &Folder::chatListFirstLetters() const {
return _nameFirstLetters;
}
const QString &Folder::chatListNameSortKey() const {
return _chatListNameSortKey;
}
} // namespace Data