From fd699d287de23771c17e395d79aa38287453a850 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 23 Nov 2020 18:48:43 +0100 Subject: Matrix: readd additional messages sync, remove reply/edit formatting from room description --- plugins/Matrix.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins/Matrix.hpp') diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index 6c4c893..2fb0d86 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -12,6 +12,10 @@ namespace QuickMedia { struct RoomData; + struct Message; + + std::string remove_reply_formatting(const std::string &str); + std::string message_get_body_remove_formatting(Message *message); enum class UserResolveState { NOT_RESOLVED, @@ -126,9 +130,9 @@ namespace QuickMedia { void clear_data(); std::string id; - bool initial_fetch_finished = false; - // These 4 variables are set by QuickMedia, not the matrix plugin + // These 5 variables are set by QuickMedia, not the matrix plugin + bool initial_prev_messages_fetch = true; bool last_message_read = true; bool users_fetched = false; time_t last_read_message_timestamp = 0; -- cgit v1.2.3