From 0b8527eb1be7ae2048e0503eee96e46177c7d5ee Mon Sep 17 00:00:00 2001
From: Loren Burkholder <computersemiexpert@outlook.com>
Date: Thu, 9 Sep 2021 21:33:50 -0400
Subject: [PATCH] Don't try to check whether a preview is direct

---
 src/timeline/RoomlistModel.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp
index e12348952..c29e1adff 100644
--- a/src/timeline/RoomlistModel.cpp
+++ b/src/timeline/RoomlistModel.cpp
@@ -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 {};
                         }
-- 
GitLab