feat: strip prefixes and suffixes in links (#5486)

This commit is contained in:
nerix
2024-07-14 11:17:42 +02:00
committed by GitHub
parent 973b7a3bdd
commit b9f669d3a5
10 changed files with 282 additions and 90 deletions
+4 -2
View File
@@ -24,7 +24,9 @@ class TextElement;
struct Emote;
using EmotePtr = std::shared_ptr<const Emote>;
struct ParsedLink;
namespace linkparser {
struct Parsed;
} // namespace linkparser
struct SystemMessageTag {
};
@@ -112,7 +114,7 @@ public:
std::weak_ptr<Message> weakOf();
void append(std::unique_ptr<MessageElement> element);
void addLink(const ParsedLink &parsedLink);
void addLink(const linkparser::Parsed &parsedLink, const QString &source);
/**
* Adds the text, applies irc colors, adds links,