Don't try to check whether a preview is direct

This commit is contained in:
Loren Burkholder 2021-09-09 21:33:50 -04:00
parent fb53fc86b6
commit 0b8527eb1b
1 changed files with 2 additions and 3 deletions

View File

@ -201,10 +201,9 @@ RoomlistModel::data(const QModelIndex &index, int role) const
case Roles::Tags:
return QStringList();
case Roles::IsDirect:
return room.member_count == 1;
return false;
case Roles::DirectChatOtherUserId:
return QString::fromStdString(
cache::roomMembers(roomid.toStdString()).front());
return QString{}; // should never be reached
default:
return {};
}