Fixed links having http:// added to the beginning in certain cases. (#5323)

This commit is contained in:
Mm2PL 2024-04-13 10:18:34 +02:00 committed by GitHub
parent bf8266e9b3
commit 7285f08a04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@
- Bugfix: Fixed a crash that could occur on Wayland when using the image uploader. (#5314) - Bugfix: Fixed a crash that could occur on Wayland when using the image uploader. (#5314)
- Bugfix: Fixed split tooltip getting stuck in some cases. (#5309) - Bugfix: Fixed split tooltip getting stuck in some cases. (#5309)
- Bugfix: Fixed the version string not showing up as expected in Finder on macOS. (#5311) - Bugfix: Fixed the version string not showing up as expected in Finder on macOS. (#5311)
- Bugfix: Fixed links having `http://` added to the beginning in certain cases. (#5323)
## 2.5.0-beta.1 ## 2.5.0-beta.1

View file

@ -635,7 +635,7 @@ void MessageBuilder::addLink(const ParsedLink &parsedLink)
auto textColor = MessageColor(MessageColor::Link); auto textColor = MessageColor(MessageColor::Link);
auto *el = this->emplace<LinkElement>( auto *el = this->emplace<LinkElement>(
LinkElement::Parsed{.lowercase = lowercaseLinkString, LinkElement::Parsed{.lowercase = lowercaseLinkString,
.original = matchedLink}, .original = origLink},
MessageElementFlag::Text, textColor); MessageElementFlag::Text, textColor);
el->setLink({Link::Url, matchedLink}); el->setLink({Link::Url, matchedLink});
getIApp()->getLinkResolver()->resolve(el->linkInfo()); getIApp()->getLinkResolver()->resolve(el->linkInfo());