From df83927ed76024cf96d85810435eea3af12558d8 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 9 Jan 2025 15:07:40 +0100 Subject: [PATCH] Expose ProgressInfoRole also for other type of attachments --- src/models/messagemodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {