add matrix link for completed item

This commit is contained in:
Jedi18 2021-02-17 19:26:19 +05:30
parent 19dbbb2c6c
commit 8aadde7885

View file

@ -37,7 +37,7 @@ RoomsModel::data(const QModelIndex &index, int role) const
if (hasIndex(index.row(), index.column(), index.parent())) { if (hasIndex(index.row(), index.column(), index.parent())) {
switch (role) { switch (role) {
case CompletionModel::CompletionRole: case CompletionModel::CompletionRole:
return QString("%1").arg(roomAliases[index.row()]); return QString("[%1](https://matrix.to/%1)").arg(roomAliases[index.row()]);
case CompletionModel::SearchRole: case CompletionModel::SearchRole:
case Qt::DisplayRole: case Qt::DisplayRole:
case Roles::RoomAlias: case Roles::RoomAlias: