ConnectyCube / connectycube-flutter-samples

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

If I delete user from connectycube it still gives data of that user in existing dialog. why that can also not automatically gets deleted? #293

Closed richanshah closed 6 months ago

richanshah commented 11 months ago

I/flutter (18962): CB-SDK: CubeChatConnection: [destroy] I/flutter (18962): CB-SDK: CubeChatConnection: [logout] I/flutter (18962): CB-SDK: CubeChatConnection: [_clearConnection] [log] D/[Connection]: State: XmppConnectionState.Closing [GETX] GOING TO ROUTE /login [GETX] REMOVING ROUTE /settings [GETX] REMOVING ROUTE /myAccount [GETX] I/flutter (18962): CB-SDK: : ========================================================= REMOVING ROUTE /dashboard I/flutter (18962): === REQUEST ==== de4482d3-9b65-4f17-8818-1f3a133ecac5 === I/flutter (18962): REQUEST I/flutter (18962): DELETE https://api.connectycube.com/users/10483947 I/flutter (18962): HEADERS I/flutter (18962): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: F8879EF3C2E51552DCE38082D85A87E4D870}

I/flutter (18962): CB-SDK: : *** I/flutter (18962): * RESPONSE 200 de4482d3-9b65-4f17-8818-1f3a133ecac5 *** I/flutter (18962): HEADERS I/flutter (18962): {cb-token-expirationdate: 2023-08-25 14:23:54 UTC, connection: keep-alive, date: Fri, 25 Aug 2023 12:23:54 GMT, content-length: 0, strict-transport-security: max-age=15768000; includeSubDomains, access-control-expose-headers: CB-Token-ExpirationDate, Date, server: nginx/1.25.0} I/flutter (18962): BODY I/flutter (18962):
I/flutter (18962): I/flutter (18962): deleteUser void from connectyCube I/flutter (18962): deleteUser from connectyCube

richanshah commented 11 months ago

Screenshot_1692966458 see its displaying deleted user.

TatankaConCube commented 11 months ago

it is just the UI of your app, please attach the log with requesting (request and response) a deleted user. also please try to search deleted user in the Connectycube admin panel. could you please attach the screenshot from the Connectycube admin panel with the found user 10483947

richanshah commented 11 months ago

CB-SDK: : ========================================================= 18:02:34.810 I === REQUEST ==== e18ad9a8-8ec7-416e-8aab-9e898961e560 === 18:02:34.810 I REQUEST 18:02:34.810 I GET https://api.connectycube.com/chat/Dialog 18:02:34.810 I HEADERS 18:02:34.810 I {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.7.0, CB-Token: 9603E821E045E3BF46FFE2F7B18FC17D5D49} 18:02:34.810 I BODY 18:02:34.810 I
18:02:34.810 I
18:02:35.486 D app_time_stats: avg=9.13ms min=3.11ms max=36.04ms count=58 18:02:35.981 I CB-SDK: : *** 18:02:35.982 I * RESPONSE 200 9b9f8dbc-34ef-4a00-859a-7e6cded8e923 *** 18:02:35.982 I HEADERS 18:02:35.982 I {cb-token-expirationdate: 2023-08-25 14:32:36 UTC, connection: keep-alive, date: Fri, 25 Aug 2023 12:32:36 GMT, strict-transport-security: max-age=15768000; includeSubDomains, content-length: 2797, access-control-expose-headers: CB-Token-ExpirationDate, Date, content-type: application/json; charset=utf-8, server: nginx/1.25.0} 18:02:35.982 I BODY 18:02:35.982 I {"total_entries":4,"skip":0,"limit":100,"items":[{"_id":"64e89cd7303009002ea4d0eb","user_id":10169154,"created_at":"2023-08-25T12:21:43Z","updated_at":"2023-08-25T12:21:43Z","name":null,"description":"demo","type":3,"photo":null,"occupants_ids":[10169154,10483947],"occupants_count":2,"is_e2ee":false,"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":[],"xmpp_room_jid":null,"admins_ids":[]},{"_id":"64e5ee3487aac2002fdad9c7","user_id":10400776,"created_at":"2023-08-23T11:32:04Z","updated_at":"2023-08-24T09:59:32Z","name":"Morning Club","type":2,"photo":"https://cdn.vox-cdn.com/thumbor/kNLNOgrME6aXOIGTM53BMtzzwDM=/0x0:5068x3379/920x613/filters:focal(2129x1285:2939x2095):format(webp)/cdn.vox-cdn.com/uploads/chorus_image/image/65186099/1169853051.15.jpg","occupants_ids":[10023181,10169154,10400776],"occupants_count":3,"xmpp_room_jid":"7266_64e5ee3487aac2002fdad9c7@muc.cha 18:02:35.982 I
18:02:35.985 I CB-SDK: : getDialogs: {currentPage: null, totalEntries: 4, perPage: null, skip: 0, limit: 100, items: [{_id: 64e89cd7303009002ea4d0eb, last_message: null, last_message_date_sent: null, last_message_user_id: null, photo: null, user_id: 10169154, xmpp_room_jid: null, unread_messages_count: 0, name: null, type: 3, description: demo, occupants_count: 2, occupants_ids: [10169154, 10483947], pinned_messages_ids: [], admins_ids: [], data: null, last_message_status: null, last_message_id: null, is_e2ee: false, is_muted: false, id: null, created_at: 2023-08-25T12:21:43.000Z, updated_at: 2023-08-25T12:21:43.000Z}, {_id: 64e5ee3487aac2002fdad9c7, last_message: wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww..., last_message_date_sent: 1692871169, last_message_user_id: 10169154, photo: https://cdn.vox-cdn.com/thumbo

logs of deleted user in private chat of another user with whom chat was created and user is deleted from Connectycube admin panel but i still get data in dialog list.

richanshah commented 11 months ago

even in admin panel if i delete all users , dialogs still exists of that users

TatankaConCube commented 10 months ago

but it is another case, You said about the user, but now you say about the dialogs. you can the delete dialog if you need it, the dialog creator can delete the dialog completely for all users

TatankaConCube commented 6 months ago

no activity for a long time. closing