Top

Need remove all message from IM conversation

Comments

5 comments

  • Official comment
    Jérôme Gully

    Hello, what is your platform ?

    It is easy to do, for exemple with android SDK:

    List<IRainbowConversation> conversations = RainbowSdk.instance().conversations().getAllConversations().getCopyOfDataList();
    for (IRainbowConversation conversation : conversations) {
    RainbowSdk.instance().conversations().deleteAllMessages(conversation, null);
    RainbowSdk.instance().conversations().deleteConversation(conversation, null);
    }
    Comment actions Permalink
  • Jeffrey CHEN

    Hi, Jérôme

    Thanks for your reply, I need use for Web SDK ,Can this example use for it?

    Appreciate your help,

    Best Regards,

    Jeffrey

    0
    Comment actions Permalink
  • Konrad Hyzy

    Hi,

    To make the same move with Rainbow Web SDK, you need to adapt this example to JavaScript. 

    Question is- do you want to delete all messages from the Rainbow Bubbles as well? 

     

    This link can come in handy when dealing with conversations: https://hub.openrainbow.com/#/documentation/doc/sdk/web/api/conversations

     

    Should you have any more questions, do not hesitate to ask us here. 

     

    Konrad

    0
    Comment actions Permalink
  • Jeffrey CHEN

    Hi Konrad

    Thanks for your prompt reply, Yes we need try delete messages for our experiment on program.

    We'll keep learning from Rainbow API Hub.

    Appreciate your help.

    Best Regards,

    Jeffrey

    0
    Comment actions Permalink
  • Jeffrey CHEN
    Hi
    Could you show us this example with JavaScript,
    we would like to try for SDKAngularSample that download from GitHub.

    Thanks for your help.
    Best Regards,

    Jeffrey
    0
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message