Make sure that only text messages can be edited

This commit is contained in:
James Graham
2024-02-25 16:57:07 +00:00
parent e95f191dc6
commit 38edad2ac5
4 changed files with 13 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ public:
AuthorDisplayNameRole, /**< The displayname for the event's sender; for name change events, the old displayname. */
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. */
LastRole, // Keep this last
};
Q_ENUM(EventRoles)