Skip to content

Commit

Permalink
Fixed links having http:// added to the beginning in certain cases. (
Browse files Browse the repository at this point in the history
  • Loading branch information
Mm2PL authored Apr 13, 2024
1 parent bf8266e commit 7285f08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- 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 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

Expand Down
2 changes: 1 addition & 1 deletion src/messages/MessageBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ void MessageBuilder::addLink(const ParsedLink &parsedLink)
auto textColor = MessageColor(MessageColor::Link);
auto *el = this->emplace<LinkElement>(
LinkElement::Parsed{.lowercase = lowercaseLinkString,
.original = matchedLink},
.original = origLink},
MessageElementFlag::Text, textColor);
el->setLink({Link::Url, matchedLink});
getIApp()->getLinkResolver()->resolve(el->linkInfo());
Expand Down

0 comments on commit 7285f08

Please sign in to comment.