/api/get_conversation # send user id and get all conversations from server.
Example:
[{conversation_id:1234
conversation_name: temp,
time_stamp: 12353423,
last_message:temp temp tmep}]
When open chat view , use get conversation api and recive conversation as json then compare between local db and the respone and update.
The conversation display as list.
On click on each conversation open conversation screen.
/api/get_conversation # send user id and get all conversations from server. Example: [{conversation_id:1234 conversation_name: temp, time_stamp: 12353423, last_message:temp temp tmep}]
When open chat view , use get conversation api and recive conversation as json then compare between local db and the respone and update. The conversation display as list. On click on each conversation open conversation screen.