Skip to content
Snippets Groups Projects
Commit 0b8527eb authored by Loren Burkholder's avatar Loren Burkholder
Browse files

Don't try to check whether a preview is direct

parent fb53fc86
No related branches found
No related tags found
No related merge requests found
......@@ -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 {};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment