fix: use the full url when resolving (#5345)

This commit is contained in:
nerix
2024-04-21 21:24:11 +02:00
committed by GitHub
parent 1a04bda56b
commit dfa929e207
5 changed files with 33 additions and 9 deletions
+4 -1
View File
@@ -272,7 +272,10 @@ public:
QString original;
};
LinkElement(const Parsed &parsed, MessageElementFlags flags,
/// @param parsed The link as it appeared in the message
/// @param fullUrl A full URL (notably with a protocol)
LinkElement(const Parsed &parsed, const QString &fullUrl,
MessageElementFlags flags,
const MessageColor &color = MessageColor::Text,
FontStyle style = FontStyle::ChatMedium);
~LinkElement() override = default;