Slash commands not working for user with spaces in name
Describe the bug When running slash commands if a user has a space in their name field, commands don’t work for them. In this case, it is happening with mutes. It seems to work fine for mentions.
Dev environment info (please complete/provide the following information):
- Package version (stream-chat-react-native/stream-chat-expo): 4.7.0
- react-native or expo version: both, current sample app 0.67
- Device/Emulator (android/ios) and OS version: both and N/A
To Reproduce
- Go to a channel.
- Use
/muteslash command in combination with a user WITH spaces, i.e.Steve Galili - An error should appear
invalid mute cmd, please specify a valid userin the messages list.
Repeat with a user WITHOUT spaces and muting will work.
See video below for more info
Expected behavior Slash commands should work for all users both with or without spaces in the name.
Additional context
User with spaces in the name- Steve Galili
User WITHOUT spaces in the name- Thierry
Screenshots
https://user-images.githubusercontent.com/25864161/176456051-fbe35028-1456-4134-85fd-8f6287ee19a5.mp4
Hey team! Please add your planning poker estimate with ZenHub @vishalnarkhede @madsroskar @khushal87
Please add your planning poker estimate with ZenHub @santhoshvai
this is also a problem in react, can be tested here https://getstream.io/chat/demos/livestream/
I have reported it to the backend team as a bug on their side https://getstream.slack.com/archives/CE5N802GP/p1672735676557879
:tada: This issue has been resolved in version 5.8.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: