Fix crash when reacting to messages from /sync

Messages on /sync don't have a room_id
This commit is contained in:
Nicolas Werner 2020-05-17 02:36:04 +02:00
parent f0757a6426
commit 5abdad308d

View file

@ -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: