Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. Android :
  2.  
  3. a) Delete conversation thread
  4.  
  5. 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
  6.  
  7. or you can call the `new DeleteConversationAsyncTask(new MobiComConversationService(context), contact, channel, null, context).execute();`
  8.  
  9. if one to one chat delete then pass contact object else pass channel for group chat delete other you can pass null
  10.  
  11. b)Delete single message in individual conversation
  12.  
  13. To delete a single message in individual conversation thread that is sent from device use
  14.  
  15. deleteMessage(message, contact) method of MobiComConversationService class. Since it will be a networking call, make sure you use it inside AsyncTask
  16. or you can directly call async task:
  17. `new DeleteConversationAsyncTask(conversationService, message, contact).execute();`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement