Closed krishna11124 closed 3 years ago
When you call getDialogs
API - it will return chat dialogs only bounded to current user - where current user is in occupants
Could you please specify with more details what's required at your side
Thanks
Hello, Actually I Want this single-user dialog on behalf of the user id?? So is there any API & Method for getting user dialog within user id??
Like this:- {"id":"5fa8d6a8ca8bf41def05a7cc","type":3,"xmpp_room_jid":null,"xmpp_type":"chat","name":"User","photo":"",token="12345","description":null,"user_id":"1111,"admins_ids":[],"occupants_ids":[0,0],"updated_date":1606119965000,"last_message_date_sent":4544,"last_message":"Hello","last_message_id":"4545","last_message_user_id":5454545,"unread_messages_count":16,"pinned_messages_ids":[]}
If you want to get a dialog by id, then you can do the following:
const filters = {_id: "...."};
ConnectyCube.chat.dialog
.list(filters)
.then((result) => {})
.catch((error) => {});
There are more filters available https://developers.connectycube.com/server/chat?id=retrieve-chat-dialogs
Hello Team, This is Krishna I Want To Ask Is There Any Api About For Getting a User Dialog Seperatly With The User Id. Thanks