Top

what is "conversation" in iM.sendIsTypingStateInConversation(conversation, status) in nodejs?

Commentaires

2 commentaires

  • Vincent BERDER

    Hello Sunny,

    You have little description about conversations in doc:

    https://hub.openrainbow.net/#/documentation/doc/sdk/node/api/conversations

     

    The API :

    "iM.sendIsTypingStateInConversation(conversation, status) "

    and

    "conversations.sendIsTypingState(conversation, status)"

    are same methods.

     

    So a litte sample to set the type state for a peer to peer conversation for a specific user:

        let that = this;

    let result = that.rainbowSDK.conversations.getConversations();

    console.log("getConversations - result : , result, nb conversations : ", result? result.length : 0);
    for (let conversation of result) {
    if (conversation.type === Conversation.Type.ONE_TO_ONE) {
    console.log("conversation ONE_TO_ONE : ", conversation);
    if (conversation.contact.lastName === "vincent02") {
    that.rainbowSDK.im.sendIsTypingStateInConversation(conversation, true);
    }
    }
    }
    }

     

    Regards,

    Vincent.

    0
    Actions pour les commentaires Permalien
  • Sunny Singh

    Hello Vincent,

    Thank you very much for the reply. Its working fine.

    Thanks and regards,
    sunny

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message