Git Product home page Git Product logo

Comments (6)

vishalnarkhede avatar vishalnarkhede commented on July 17, 2024

Hey @leogoesger , thanks for bringing it up. It looks like a mistake in docs, we will update the docs.

from stream-chat-react.

leogoesger avatar leogoesger commented on July 17, 2024

@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.

thesyncim avatar thesyncim commented on July 17, 2024

@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.

leogoesger avatar leogoesger commented on July 17, 2024

@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.

tbarbugli avatar tbarbugli commented on July 17, 2024

@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.

vishalnarkhede avatar vishalnarkhede commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.