summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-17 02:36:04 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-17 02:36:04 +0200
commit5abdad308d5707b4818c57f33331339b629894aa (patch)
treec3dd7be08ebc6de1edfb519758afa4d9b1890fbd /src
parentFix local echo for reactions (diff)
downloadnheko-5abdad308d5707b4818c57f33331339b629894aa.tar.xz
Fix crash when reacting to messages from /sync
Messages on /sync don't have a room_id
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineModel.cpp2
1 files changed, 1 insertions, 1 deletions
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: