ConnectyCube / connectycube-flutter-samples

Code samples for Flutter, based on ConnectyCube platform
https://developers.connectycube.com/flutter/
Apache License 2.0
85 stars 91 forks source link

dialog updation issue #295

Closed richanshah closed 1 year ago

richanshah commented 1 year ago

when i create dialog with type group and passing dialogid in params on creation , which gives me same dialog id on creation of dialog in success. but when i try to update that dialog with same id it gives me error.

POST https://api.connectycube.com/chat/Dialog 18:33:37.318 I HEADERS 18:33:37.318 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: 06C4FEB55D66ADE783925CC2933ED219CA17} 18:33:37.318 I BODY 18:33:37.318 I {"_id":"4f836499-b3bd-48f5-9227-0861f261af7a","name":"sss","type":2,"occupants_ids":[10551524]} 18:33:37.318 I
18:33:38.155 I CB-SDK: : *** 18:33:38.155 I * RESPONSE 201 a54562d5-f837-42c6-afbd-04925a072537 *** 18:33:38.155 I HEADERS 18:33:38.155 I {cb-token-expirationdate: 2023-08-31 15:03:41 UTC, connection: keep-alive, date: Thu, 31 Aug 2023 13:03:41 GMT, strict-transport-security: max-age=15768000; includeSubDomains, content-length: 528, access-control-expose-headers: CB-Token-ExpirationDate, Date, content-type: application/json; charset=utf-8, server: nginx/1.25.0} 18:33:38.155 I BODY 18:33:38.155 I {"_id":"64f08fadd99a1e002f59177c","user_id":10551524,"created_at":"2023-08-31T13:03:41Z","updated_at":"2023-08-31T13:03:41Z","name":"sss","type":2,"occupants_ids":[10551524],"occupants_count":1,"xmpp_room_jid":"7266_64f08fadd99a1e002f59177c@muc.chat.connectycube.com","is_e2ee":false,"admins_ids":[],"is_muted":false,"last_message":null,"last_message_date_sent":null,"last_message_id":null,"last_message_user_id":null,"last_message_status":null,"unread_messages_count":0,"pinned_messages_ids":[],"description":null,"photo":null}

CB-SDK: : ========================================================= 18:33:53.318 I === REQUEST ==== 96ce1742-bb54-4301-ba26-0f35dffca4db === 18:33:53.318 I REQUEST 18:33:53.318 I PUT https://api.connectycube.com/chat/Dialog/4f836499-b3bd-48f5-9227-0861f261af7a 18:33:53.318 I HEADERS 18:33:53.318 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: 06C4FEB55D66ADE783925CC2933ED219CA17} 18:33:53.318 I BODY 18:33:53.319 I {"push_all":{"occupants_ids":[10551474]}} 18:33:53.319 I
18:33:54.205 I CB-SDK: : *** 18:33:54.205 I * RESPONSE 404 96ce1742-bb54-4301-ba26-0f35dffca4db *** 18:33:54.205 I HEADERS 18:33:54.205 I {connection: keep-alive, content-type: application/json; charset=utf-8, date: Thu, 31 Aug 2023 13:03:57 GMT, strict-transport-security: max-age=15768000; includeSubDomains, server: nginx/1.25.0, content-length: 24} 18:33:54.205 I BODY 18:33:54.206 I {"errors":["Not found"]}

@TatankaConCube , please help

richanshah commented 1 year ago

resolved