mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Ignore accents in contacts list sorting.
This commit is contained in:
@@ -62,6 +62,7 @@ History::History(not_null<Data::Session*> owner, PeerId peerId)
|
||||
, peer(owner->peer(peerId))
|
||||
, cloudDraftTextCache(st::dialogsTextWidthMin)
|
||||
, _mute(owner->notifyIsMuted(peer))
|
||||
, _chatListNameSortKey(owner->nameSortKey(peer->name))
|
||||
, _sendActionPainter(this) {
|
||||
if (const auto user = peer->asUser()) {
|
||||
if (user->isBot()) {
|
||||
@@ -2019,6 +2020,14 @@ const QString &History::chatListName() const {
|
||||
return peer->name;
|
||||
}
|
||||
|
||||
const QString &History::chatListNameSortKey() const {
|
||||
return _chatListNameSortKey;
|
||||
}
|
||||
|
||||
void History::refreshChatListNameSortKey() {
|
||||
_chatListNameSortKey = owner().nameSortKey(peer->name);
|
||||
}
|
||||
|
||||
const base::flat_set<QString> &History::chatListNameWords() const {
|
||||
return peer->nameWords();
|
||||
}
|
||||
|
Reference in New Issue
Block a user