Bug 458311 - NeoChat shows spoilered links automatically
Summary: NeoChat shows spoilered links automatically
Status: RESOLVED FIXED
Alias: None
Product: NeoChat
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-25 18:35 UTC by Jan Bidler
Modified: 2022-08-26 20:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Bidler 2022-08-25 18:35:31 UTC
SUMMARY
NeoChat automatically shows links that are marked in spoiler tags. This should not happen, as the user might get spoiled.


STEPS TO REPRODUCE
1.  Send a link in spoiler, like `/spoiler https://kde.org`
2. Check if the link is shown as a link and not as text. If it is shown as text, repeat step 1 again

OBSERVED RESULT
NeoChat shows the blue link with the white spoiler text background

EXPECTED RESULT
NeoChat should not show the blue link unless the user has clicked on the spoiler text.

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
NeoChat: self compiled flatpak
Comment 1 Tobias Fella 2022-08-26 20:09:00 UTC
Git commit d4d99284cc62da14f616ddd1511b9d4eefee6fb3 by Tobias Fella.
Committed on 26/08/2022 at 20:08.
Pushed by tfella into branch 'master'.

Correctly hide spoiler links

M  +8    -1    imports/NeoChat/Component/Timeline/RichLabel.qml

https://invent.kde.org/network/neochat/commit/d4d99284cc62da14f616ddd1511b9d4eefee6fb3