diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-17 02:36:04 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-17 02:36:04 +0200 |
commit | 5abdad308d5707b4818c57f33331339b629894aa (patch) | |
tree | c3dd7be08ebc6de1edfb519758afa4d9b1890fbd /src | |
parent | Fix local echo for reactions (diff) | |
download | nheko-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.cpp | 2 |
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: |