Move showAuthor role to MessageModel, so it's available for all models

This fixes features like the search model, where no message delegates
could be created because it's missing showAuthor.
This commit is contained in:
Joshua Goins
2025-01-11 18:05:21 -05:00
committed by James Graham
parent a67ce75924
commit 1d532a1fc1
4 changed files with 7 additions and 3 deletions

View File

@@ -84,6 +84,7 @@ public:
IsRedactedRole, /**< Whether an event has been deleted. */
IsPendingRole, /**< Whether an event is waiting to be accepted by the server. */
IsEditableRole, /**< Whether the event can be edited by the user. */
ShowAuthorRole, /**< Whether the author of a message should be shown. */
LastRole, // Keep this last
};
Q_ENUM(EventRoles)