Pass room through the model, not when creating the delegate
This is another thing that enables us to view multiple rooms in a single timeline. Specifically, this improves the experience in room search going across room versions and getting a correct readOnly status (for hiding certain hover actions.)
This commit is contained in:
@@ -87,6 +87,7 @@ public:
|
||||
IsEditableRole, /**< Whether the event can be edited by the user. */
|
||||
ShowAuthorRole, /**< Whether the author of a message should be shown. */
|
||||
EventTypeRole, /**< The matrix event type of this message. */
|
||||
RoomRole, /**< The room this event is from. */
|
||||
LastRole, // Keep this last
|
||||
};
|
||||
Q_ENUM(EventRoles)
|
||||
|
||||
Reference in New Issue
Block a user