From deb32bded40c4c46ce57c729c303edcb1915458b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 8 Nov 2022 22:05:03 +0100 Subject: html parser: fix possible endless loop. Fixes matrix chat where parsing non-html as html happened --- plugins/Matrix.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Matrix.hpp') 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; -- cgit v1.2.3