From 5abdad308d5707b4818c57f33331339b629894aa Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 17 May 2020 02:36:04 +0200 Subject: Fix crash when reacting to messages from /sync Messages on /sync don't have a room_id --- src/timeline/TimelineModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 9eca05ba..371e9f58 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -374,7 +374,7 @@ TimelineModel::data(const QString &id, int role) const else return {}; case RoomId: - return QVariant(QString::fromStdString(room_id(event))); + return QVariant(room_id_); case RoomName: return QVariant(QString::fromStdString(room_name(event))); case RoomTopic: -- cgit 1.4.1