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 -3
View File
@@ -679,10 +679,11 @@ void SingleLineTextElement::addToContainer(MessageLayoutContainer &container,
}
}
LinkElement::LinkElement(const Parsed &parsed, MessageElementFlags flags,
const MessageColor &color, FontStyle style)
LinkElement::LinkElement(const Parsed &parsed, const QString &fullUrl,
MessageElementFlags flags, const MessageColor &color,
FontStyle style)
: TextElement({}, flags, color, style)
, linkInfo_(parsed.original)
, linkInfo_(fullUrl)
, lowercase_({parsed.lowercase})
, original_({parsed.original})
{