Show subtitle text without markdown

Create new role in RoomListModel to send back cleaned subtitle text
This commit is contained in:
Snehit Sah
2022-03-31 17:39:34 +00:00
committed by Tobias Fella
parent a747d44cac
commit 9a5f2e4938
5 changed files with 43 additions and 8 deletions

View File

@@ -66,6 +66,12 @@ public:
/// \see lastEvent
[[nodiscard]] QDateTime lastActiveTime();
/// Get subtitle text for room
///
/// Fetches last event and removes markdown formatting
/// \see lastEventToString
[[nodiscard]] QString subtitleText();
bool isEventHighlighted(const Quotient::RoomEvent *e) const;
[[nodiscard]] QString joinRule() const;