diff --git a/src/models/roomlistmodel.cpp b/src/models/roomlistmodel.cpp index 1a58c8b49..b670b06b4 100644 --- a/src/models/roomlistmodel.cpp +++ b/src/models/roomlistmodel.cpp @@ -349,7 +349,7 @@ QVariant RoomListModel::data(const QModelIndex &index, int role) const return m_categoryVisibility.value(data(index, CategoryRole).toInt(), true); } if (role == SubtitleTextRole) { - if (room->lastEventIsSpoiler()) { + if (room->lastEvent() == nullptr || room->lastEventIsSpoiler()) { return QString(); } EventHandler eventHandler;