Remove Redundant Parsing of Links (#4507)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -23,6 +23,8 @@ class TextElement;
|
||||
struct Emote;
|
||||
using EmotePtr = std::shared_ptr<const Emote>;
|
||||
|
||||
struct ParsedLink;
|
||||
|
||||
struct SystemMessageTag {
|
||||
};
|
||||
struct TimeoutMessageTag {
|
||||
@@ -94,8 +96,7 @@ public:
|
||||
std::weak_ptr<Message> weakOf();
|
||||
|
||||
void append(std::unique_ptr<MessageElement> element);
|
||||
QString matchLink(const QString &string);
|
||||
void addLink(const QString &origLink, const QString &matchedLink);
|
||||
void addLink(const ParsedLink &parsedLink);
|
||||
|
||||
/**
|
||||
* Adds the text, applies irc colors, adds links,
|
||||
|
||||
Reference in New Issue
Block a user