Giter Club home page Giter Club logo

Comments (3)

shubhangi-asgola avatar shubhangi-asgola commented on July 17, 2024

@Kabangi I have noticed a similar issue. I tried to dig in the code a bit. I have found out that in Client.js file there are a few places where we try to extract some values from Constants. Constants have those attributes however they are wrapped inside a attribute called default. That is why it not able to get those values.

from react-native-twilio-chat.

bradbyte avatar bradbyte commented on July 17, 2024

@shubhangi-asgola that's because they're ES6 exports.. you need to import them or require them with .default.

from react-native-twilio-chat.

mattshen avatar mattshen commented on July 17, 2024

Availability of uniqueName, friendlyName and attributes etc is more related to Channel Synchronisation Status. The status has to be at least Metadata to make the friendlyName available.

I also run into similar issue: one user (A) is added by another user (B) into a newly created channel. The client.onChannelAdded listener is called on user A, but metadata of the channel is not available, because the channel Synchronisation status is low (e.g. None, Identifier).

My workaround is to run the following code in a timeout block:

setTimeout(() => {
  client.getChannel(sid).then(channel => {
    // this should give me more information of the channel 
  });
}, 3000);

from react-native-twilio-chat.

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.