Bug 458311

Summary: NeoChat shows spoilered links automatically
Product: [Applications] NeoChat Reporter: Jan Bidler <janbidler00>
Component: GeneralAssignee: 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: Version Fixed/Implemented In:
Sentry Crash Report:

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