diff --git a/src/models/messagemodel.cpp b/src/models/messagemodel.cpp index 0f606c90c..761afa7a7 100644 --- a/src/models/messagemodel.cpp +++ b/src/models/messagemodel.cpp @@ -201,13 +201,15 @@ QVariant MessageModel::data(const QModelIndex &idx, int role) const if (role == ProgressInfoRole) { if (auto e = eventCast(&event.value().get())) { - if (e->has()) { + if (e->has() || e->has() || e->has() + || e->has()) { return QVariant::fromValue(m_room->cachedFileTransferInfo(&event.value().get())); } } if (eventCast(&event.value().get())) { return QVariant::fromValue(m_room->cachedFileTransferInfo(&event.value().get())); } + return {}; } if (role == TimeRole) {