We now also add localized names to the autocompletion
Changed the login name in autocompletion to the display name Autocompletion model is now only updated on the "first completion"
This commit is contained in:
@@ -65,9 +65,15 @@ void CompletionModel::refresh()
|
||||
return;
|
||||
}
|
||||
auto usernames = c->getUsernamesForCompletions();
|
||||
for (const auto &username : usernames) {
|
||||
this->addString(username);
|
||||
this->addString('@' + username);
|
||||
for (const auto &name : usernames) {
|
||||
assert(!name.displayName.isEmpty());
|
||||
this->addString(name.displayName);
|
||||
this->addString('@' + name.displayName);
|
||||
|
||||
if (!name.localizedName.isEmpty()) {
|
||||
this->addString(name.localizedName);
|
||||
this->addString('@' + name.localizedName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user