Comments (6)
Hey @leogoesger , thanks for bringing it up. It looks like a mistake in docs, we will update the docs.
from stream-chat-react.
@vishalnarkhede I could raise other issues, but EmptyStateIndicator
is missing in ChannelList's prop types.
And if may, what is the strategy to add user to a chat when the user has not been created?
Use case:
We are migrating from Chatkit, so lots of current users have never called setUser
yet. We need a way for us to initiate the convo with those un-initialized users, and does the initialization at the same time.
In Chatkit, we did it on the server level, we send the error message to the server and have it create those users, and then create the channel.
Is that still the correct approach here? Or there is something built in?
from stream-chat-react.
@leogoesger,
yes, users need to be created before added to a channel.
(I'm aware that pusher is working on an export tool that will make this process easier, but it's not ready yet)
for now, you can either use server-side auth or alternatively you could generate an import file.
from stream-chat-react.
@thesyncim what doe server side auth mean? creating the user on server side once error? or using the updateUsers
methods creating all the users beforehand?
from stream-chat-react.
@leogoesger yes, you can use updateUsers to sync users in bulk from your backend (apologies for the misnomer, it actually does an upsert)
from stream-chat-react.
Hey @leogoesger , thanks for bringing it up. It looks like a mistake in docs, we will update the docs.
@leogoesger we have updated the docs. Closing this for now ... If you have any more followup questions, please feel free to reopen.
from stream-chat-react.
Related Issues (20)
- Hiding Channels Based on channel type using metadata
- Hiding Channels Based on channel type using metadata HOT 2
- Encountering two children with the same key HOT 7
- Unread message notifications do not disappear after reading the message HOT 1
- Unread message notifications do not disappear after reading the message HOT 3
- bug: `unread` on ChannelPreview not updating after muting & unmuting a channel HOT 1
- bug: messageInput autocomplete for emotes (e.g `<3`) sends the message without cleaning the input state HOT 2
- bug: The MessageOptions (triple dot when hovering over a message) requires reverse tabbing for accessibility to select menu items
- bug: Command and Mention popup overlap with play button HOT 1
- bug: channels not marked as `read` on `v11.12.2` unless you receive a message while the channel is open HOT 1
- bug: Setting message_limit less than 25 in ChannelList props disables infinite scroll functionality HOT 2
- bug: numbers follow by a period in a message get rendered as a strange html ordered list HOT 3
- bug: mentions in some scenarios doesn't work HOT 1
- bug: str-chat__message-with-thread-link class is not enabled when the Reply button is shown HOT 1
- bug: StreamChat automatically opens into a conversation on Mobile HOT 4
- Direct Scroll to Specific Message by Channel and Message ID HOT 1
- bug: ChannelInner can call methods on a disconnected channel, causing uncaught errors HOT 3
- bug: invalid SVG urls in dist/css/v2/index.css fails to compile with NextJS dev using Turbopack HOT 1
- bug: mention inside a thread reply doesn't add the mentioned-user to be part of the `thread_participants` HOT 5
- bug: User mention search does not function properly when typing quickly HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stream-chat-react.