Top

Need remove all message from IM conversation

Comentários

5 comentários

  • Comentário oficial
    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);
    }
    Ações de comentário 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
    Ações de comentário 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
    Ações de comentário 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
    Ações de comentário 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
    Ações de comentário Permalink

Por favor, entrar para comentar.

  • Pergunte à Comunidade

    Você precisa de ajuda? Faça suas perguntas na Comunidade para obter respostas de outros usuários do Rainbow.

    Enviar mensagem