Skip to content
Snippets Groups Projects
Commit c07c3261 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Linkify username completion

parent 0cf556fa
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,9 @@ UsersModel::data(const QModelIndex &index, int role) const
if (hasIndex(index.row(), index.column(), index.parent())) {
switch (role) {
case CompletionModel::CompletionRole:
return QString("[%1](https://matrix.to/#/%2)")
.arg(displayNames[index.row()])
.arg(userids[index.row()]);
case CompletionModel::SearchRole:
case Qt::DisplayRole:
case Roles::DisplayName:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment