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

no friction channel view with option to prepare a message #449

Open
ciekawy opened this issue Jul 8, 2023 · 1 comment
Open

no friction channel view with option to prepare a message #449

ciekawy opened this issue Jul 8, 2023 · 1 comment

Comments

@ciekawy
Copy link
Contributor

ciekawy commented Jul 8, 2023

Currently for anonymous user the message input is disabled. I'd like to provide users an option to browse a chanel even before they decide to sign up (and also to reduce MAU for logged in users as they may just read messages but not decide to write any - still with instant option to start writing).

Currently I did a hack:

  • opening channel as 'anonymous' user
  • appending send-message to channel.data.own_capabilities - this makes the messageInput enabled
  • patching ChannelService.sendMessage so upon send, user walked through the sign in/sign up if needed, anonymous user gets disconnected and after fresh ChannelService.init with real user, original ChannelService.sendMessage is restored and flow dispatched to it.

Would be great to see this all handled internally by stream-chat-angular

@szuperaz
Copy link
Contributor

Thanks for your feedback. We don't have plans to support this workflow in the near future. However further down the line, we might add related features to the SDK.

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

No branches or pull requests

2 participants