From c07c3261414b537a21c0493f73d9790c36dde219 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 24 Nov 2020 19:01:52 +0100 Subject: [PATCH] Linkify username completion --- src/UsersModel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/UsersModel.cpp b/src/UsersModel.cpp index cb9f8f75..aeabf467 100644 --- a/src/UsersModel.cpp +++ b/src/UsersModel.cpp @@ -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: