mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Don't try to check whether a preview is direct
This commit is contained in:
parent
fb53fc86b6
commit
0b8527eb1b
1 changed files with 2 additions and 3 deletions
|
@ -201,10 +201,9 @@ RoomlistModel::data(const QModelIndex &index, int role) const
|
||||||
case Roles::Tags:
|
case Roles::Tags:
|
||||||
return QStringList();
|
return QStringList();
|
||||||
case Roles::IsDirect:
|
case Roles::IsDirect:
|
||||||
return room.member_count == 1;
|
return false;
|
||||||
case Roles::DirectChatOtherUserId:
|
case Roles::DirectChatOtherUserId:
|
||||||
return QString::fromStdString(
|
return QString{}; // should never be reached
|
||||||
cache::roomMembers(roomid.toStdString()).front());
|
|
||||||
default:
|
default:
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue