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:
@@ -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
|
||||
|
Reference in New Issue
Block a user