aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-06 13:54:02 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-07 14:24:32 +0100
commit8025d1075db0779bde635148f6e38303eb29d6c8 (patch)
tree64dce4cc00fa55edba0ab7d2522e13473e6ef3c4 /plugins
parentf8b3a9d055bfc0e4bb9e9a570ccc8853ec38a225 (diff)
Formatted text with color in matrix, monospace for codeblocks
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index 11989e3..61814ac 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -24,6 +24,7 @@ namespace QuickMedia {
std::string message_get_body_remove_formatting(Message *message);
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);
struct TimestampedDisplayData {
std::string data;
@@ -617,6 +618,7 @@ namespace QuickMedia {
void update_room_users(RoomData *room);
void append_system_message(RoomData *room_data, std::shared_ptr<Message> message);
+ std::string body_to_formatted_body(RoomData *room, const std::string &body);
// Calls the |MatrixDelegate| pending events.
// Should be called from the main (ui) thread
@@ -627,7 +629,6 @@ namespace QuickMedia {
void formatted_body_add_line(RoomData *room, std::string &formatted_body, const std::string &line_str);
void replace_mentions(RoomData *room, std::string &text);
- std::string body_to_formatted_body(RoomData *room, const std::string &body);
std::string create_formatted_body_for_message_reply(RoomData *room, const Message *message, const std::string &body);
PluginResult set_pinned_events(RoomData *room, const std::vector<std::string> &pinned_events, bool is_add);