Add delegates to show room upgrades into the timeline model.

The delegates are at the beginning for upgraded rooms and end for predecessors.

Closes: network/neochat#620 and network/neochat#619
This commit is contained in:
James Graham
2024-08-22 17:21:36 +00:00
parent 656558850c
commit b3afa9f595
7 changed files with 213 additions and 2 deletions

View File

@@ -38,6 +38,8 @@ public:
ReadMarker, /**< The local user read marker. */
Loading, /**< A delegate to tell the user more messages are being loaded. */
TimelineEnd, /**< A delegate to inform that all messages are loaded. */
Predecessor, /**< A delegate to show a room predecessor. */
Successor, /**< A delegate to show a room successor. */
Other, /**< Anything that cannot be classified as another type. */
};
Q_ENUM(Type);