aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-08 22:05:03 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-08 22:05:03 +0100
commitdeb32bded40c4c46ce57c729c303edcb1915458b (patch)
tree66bac3d9ccf67e30fa21f7682ab8f21f98c1af1c /plugins
parentd8cccb74066545c534bb9952f51e441d4aba2c66 (diff)
html parser: fix possible endless loop. Fixes matrix chat where parsing non-html as html happened
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index 4afe28e..ac3ca3b 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -20,7 +20,6 @@ namespace QuickMedia {
static const int AUTHOR_MAX_LENGTH = 48;
- std::string remove_reply_formatting(const std::string &str);
std::string extract_first_line_remove_newline_elipses(const std::string &str, size_t max_length);
mgl::Color user_id_to_color(const std::string &user_id);
std::string formatted_text_to_qm_text(const char *str, size_t size, bool allow_formatted_text);
@@ -103,6 +102,7 @@ namespace QuickMedia {
RelatedEventType related_event_type = RelatedEventType::NONE;
bool notification_mentions_me = false;
bool cache = false;
+ bool body_is_formatted = false;
std::string transaction_id;
time_t timestamp = 0; // In milliseconds
MessageType type;