Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: commands with username must be replaced with userId #1890

Merged
merged 5 commits into from
Jan 10, 2023

Conversation

santhoshvai
Copy link
Member

@santhoshvai santhoshvai commented Jan 5, 2023

🎯 Goal

Fixes #1522

🛠 Implementation details

Added a utility function to patch the message text to replace the username with userId when sending the message to server.

This ensures that

  • we show username in UI
  • but send userId to server

🎨 UI Changes

iOS
Before After
Android
Before After

🧪 Testing

☑️ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

@santhoshvai santhoshvai self-assigned this Jan 6, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jan 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

81.5% 81.5% Coverage
0.0% 0.0% Duplication

@santhoshvai santhoshvai merged commit 8001e4d into develop Jan 10, 2023
@santhoshvai santhoshvai deleted the santhosh/fix-message-commands branch January 10, 2023 04:56
@github-actions github-actions bot mentioned this pull request Jan 12, 2023
@vishalnarkhede
Copy link
Contributor

🎉 This PR is included in version 5.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slash commands not working for user with spaces in name
3 participants