From f3937a874ce08ff9983d922383d86862696b716e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 11 Nov 2022 10:55:49 +0100 Subject: Matrix: do not format html in room description if body is plain text --- plugins/Matrix.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index 66ca0a8..9378a9f 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -26,7 +26,8 @@ namespace QuickMedia { mgl::Color user_id_to_color(const std::string &user_id); // |image_max_size| 0, 0 means no max size std::string formatted_text_to_qm_text(Matrix *matrix, const char *str, size_t size, bool allow_formatted_text, mgl::vec2i image_max_size = mgl::vec2i(0, 0)); - std::string message_to_qm_text(Matrix *matrix, const Message *message, bool allow_formatted_text = true); + // |image_max_size| 0, 0 means no max size + std::string message_to_qm_text(Matrix *matrix, const Message *message, bool allow_formatted_text = true, mgl::vec2i image_max_size = mgl::vec2i(0, 0)); struct TimestampedDisplayData { std::string data; -- cgit v1.2.3