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
-
Offizieller Kommentar
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);
}Aktionen für Kommentare -
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
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare