summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-09-09 21:33:50 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-09-11 19:35:31 -0400
commit0b8527eb1be7ae2048e0503eee96e46177c7d5ee (patch)
tree9166e3c8f504b15905d083d2f65205aa0b667bb6 /src/timeline
parentFix invites crashing the whole app (diff)
downloadnheko-0b8527eb1be7ae2048e0503eee96e46177c7d5ee.tar.xz
Don't try to check whether a preview is direct
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/RoomlistModel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp
index e1234895..c29e1adf 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 {};
                         }