Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Android :
- a) Delete conversation thread
- To delete the conversation call the method deleteSync(contact, channel, conversationId) of MobiComConversationService class. Since it will be a networking call, make sure you use it inside AsyncTask
- or you can call the `new DeleteConversationAsyncTask(new MobiComConversationService(context), contact, channel, null, context).execute();`
- if one to one chat delete then pass contact object else pass channel for group chat delete other you can pass null
- b)Delete single message in individual conversation
- To delete a single message in individual conversation thread that is sent from device use
- deleteMessage(message, contact) method of MobiComConversationService class. Since it will be a networking call, make sure you use it inside AsyncTask
- or you can directly call async task:
- `new DeleteConversationAsyncTask(conversationService, message, contact).execute();`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement