mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
add matrix link for completed item
This commit is contained in:
parent
19dbbb2c6c
commit
8aadde7885
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue