| Summary: | NeoChat link preview showing 1 as link for empty link | ||
|---|---|---|---|
| Product: | [Applications] NeoChat | Reporter: | Jan Bidler <janbidler00> |
| Component: | General | Assignee: | Tobias Fella <fella> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | carl |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/network/neochat/commit/916e7465f1fbec79b2c24b49a509498a0201aa54 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Jan Bidler
2022-07-18 18:14:23 UTC
Git commit 916e7465f1fbec79b2c24b49a509498a0201aa54 by Tobias Fella. Committed on 18/07/2022 at 19:18. Pushed by tfella into branch 'master'. Don't show a link preview for empty links When hovering over a link without a target, qt5 will report the link target to be "1", which is wrong. To work around this, we manually check if the link is "1" and if it is, we discard it. In theory, this means that we won't get a preview for any link that actually *is* "1", but why would any link be "1"? It's not worth reporting this to Qt since it seems fixed in Qt6 M +1 -1 imports/NeoChat/Component/Timeline/RichLabel.qml https://invent.kde.org/network/neochat/commit/916e7465f1fbec79b2c24b49a509498a0201aa54 |