aboutsummaryrefslogtreecommitdiff
path: root/plugins/Matrix.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-23 18:48:43 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-23 19:18:58 +0100
commitfd699d287de23771c17e395d79aa38287453a850 (patch)
tree36c1d2c47a2cb6426882aeeda65ad1d4851523e2 /plugins/Matrix.hpp
parent5c0dd4a6885da32c52d4d03235507a5492919dd3 (diff)
Matrix: readd additional messages sync, remove reply/edit formatting from room description
Diffstat (limited to 'plugins/Matrix.hpp')
-rw-r--r--plugins/Matrix.hpp8
1 files changed, 6 insertions, 2 deletions
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;