Bug 457474

Summary: NeoChat prompting for slash commands in the middle of a message
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-04 10:26:01 UTC
SUMMARY
When using slashes in the middle of a message, neochat thinks that the user is trying to input a slash command.


STEPS TO REPRODUCE
1. Write something along the lines of `Hey, check out my favourite GNU / Linux distro!`

OBSERVED RESULT
After typing the slash, NeoChat prompts you with the command selection

EXPECTED RESULT
NeoChat should only prompt the command selection, if the slash is the first character in the message.

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
NeoChat: self compiled flatpak
Comment 1 Bug Janitor Service 2022-09-22 12:47:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/neochat/-/merge_requests/532
Comment 2 Tobias Fella 2022-09-22 15:12:00 UTC
Git commit 53b9f4239989b32aa73f84838b47e374ba690853 by Tobias Fella, on behalf of James Graham.
Committed on 22/09/2022 at 15:11.
Pushed by tfella into branch 'master'.

Fix Slash Commands in the Middle of a Message

Make sure that a slash command only activates when the slash is at the beginning of the message.

M  +1    -1    src/chatdocumenthandler.cpp

https://invent.kde.org/network/neochat/commit/53b9f4239989b32aa73f84838b47e374ba690853