aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-27 22:33:40 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-27 22:33:40 +0200
commitf045e579e1faa186ca0ebf6e6d1e562fbcd75727 (patch)
treecbb8617ca4174954412dc6e371f7f9c11e1a4c9e /plugins
parent0f1319d48f2b29536dfea5851a5a476a17d2d7fb (diff)
Fix multiline block not visible if only one line, fix naughty users having too long names or newlines in username
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index f76d70d..1063e0e 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -14,8 +14,11 @@ namespace QuickMedia {
struct RoomData;
struct Message;
+ static const int AUTHOR_MAX_LENGTH = 48;
+
std::string remove_reply_formatting(const std::string &str);
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);
enum class UserResolveState {
NOT_RESOLVED,