diff --git a/src/models/messageeventmodel.cpp b/src/models/messageeventmodel.cpp index dff9b93ee..59060dcd7 100644 --- a/src/models/messageeventmodel.cpp +++ b/src/models/messageeventmodel.cpp @@ -45,7 +45,7 @@ QHash MessageEventModel::roleNames() const roles[ContentRole] = "content"; roles[HighlightRole] = "isHighlighted"; roles[SpecialMarksRole] = "marks"; - roles[LongOperationRole] = "progressInfo"; + roles[ProgressInfoRole] = "progressInfo"; roles[ShowLinkPreviewRole] = "showLinkPreview"; roles[LinkPreviewRole] = "linkPreview"; roles[MediaInfoRole] = "mediaInfo"; @@ -696,7 +696,7 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const return !evt.id().isEmpty() ? evt.id() : evt.transactionId(); } - if (role == LongOperationRole) { + if (role == ProgressInfoRole) { if (auto e = eventCast(&evt)) { if (e->hasFileContent()) { return QVariant::fromValue(m_currentRoom->fileTransferInfo(e->id())); diff --git a/src/models/messageeventmodel.h b/src/models/messageeventmodel.h index 9e7399e94..e4f25693e 100644 --- a/src/models/messageeventmodel.h +++ b/src/models/messageeventmodel.h @@ -69,7 +69,7 @@ public: ContentRole, /**< The full message content. */ HighlightRole, /**< Whether the event should be highlighted. */ SpecialMarksRole, /**< Whether the event is hidden or not. */ - LongOperationRole, /**< Progress info when downloading files. */ + ProgressInfoRole, /**< Progress info when downloading files. */ FormattedBodyRole, /**< The formatted body of a rich message. */ GenericDisplayRole, /**< A generic string based upon the message type. */