diff --git a/src/timeline/models/messagecontentmodel.h b/src/timeline/models/messagecontentmodel.h index 78b6d02fb..b9f7f12c2 100644 --- a/src/timeline/models/messagecontentmodel.h +++ b/src/timeline/models/messagecontentmodel.h @@ -41,7 +41,7 @@ public: */ enum Roles { DisplayRole = Qt::DisplayRole, /**< The display text for the message. */ - ComponentTypeRole, /**< The type of component to visualise the message. */ + ComponentTypeRole = Qt::UserRole, /**< The type of component to visualise the message. */ ComponentAttributesRole, /**< The attributes of the component. */ EventIdRole, /**< The matrix event ID of the event. */ TimeRole, /**< The timestamp for when the event was sent (as a QDateTime). */