Need remove all message from IM conversation
Hi
We create sandbox platform users, and would like remove all message or all conversation after user login, is there some API can use or any example to learn ?
appreciate your help.
Best Regards,
Jeffrey
-
Commentaire officiel
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);
}Actions pour les commentaires -
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
Vous devez vous connecter pour laisser un commentaire.
Commentaires
5 commentaires