You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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:
send-message
tochannel.data.own_capabilities
- this makes the messageInput enabledChannelService.sendMessage
so upon send, user walked through the sign in/sign up if needed, anonymous user gets disconnected and after freshChannelService.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
The text was updated successfully, but these errors were encountered: