Giter VIP home page Giter VIP logo

Comments (4)

soulfly avatar soulfly commented on July 28, 2024

Please provide logs for Dialog delete and Get dialogs requests
I have just checked this and it works for me

from quickblox-android-sdk.

ltburruel avatar ltburruel commented on July 28, 2024

Initial Get Dialogs Request

Received Following Dialog IDs:

  • 54610ddd535c128d3b0030a2
  • 54552c1e535c12baac04f1ef
  • 54553379535c12baac04f792


11-12 09:34:26.193 4247-6224/com.ideausa.qwhoo D/QBASDK﹕

=== REQUEST ==== e332ce39-49b4-4ccc-859e-c5e5c1e4843b ===
REQUEST
GET https://api.quickblox.com/chat/Dialog.json
HEADERS
QuickBlox-REST-API-Version=0.1.1
QB-SDK=Android 2.0
QB-Token=211163fa3f3443ba1e7eee799b97d1fce9e86cf1
PARAMETERS
limit=500
INLINE
GET https://api.quickblox.com/chat/Dialog.json?limit=500 

11-12 09:34:26.964 4247-6224/com.ideausa.qwhoo D/QBASDK﹕


*** RESPONSE *** e332ce39-49b4-4ccc-859e-c5e5c1e4843b ***
STATUS : 200
HEADERS
Access-Control-Allow-Origin=*
Cache-Control=max-age=0, private, must-revalidate
Connection=keep-alive
Content-Type=application/json; charset=utf-8
Date=Wed, 12 Nov 2014 17:34:27 GMT
ETag="aa9c77169829585e649b33bea9f42fbe"
QB-Token-ExpirationDate=2014-11-12 19:31:42 UTC
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.0.15
Status=200 OK
Transfer-Encoding=chunked
X-Rack-Cache=miss
X-Request-Id=5aaffda2c245f7dccbad98ab24801417
X-Runtime=0.014513
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"skip":0,"limit":500,"items":[{"_id":"54610ddd535c128d3b0030a2","last_message":"from you","last_message_date_sent":1415764229,"last_message_user_id":1877849,"name":null,"occupants_ids":[1761465,1877849],"photo":null,"type":3,"user_id":1877849,"xmpp_room_jid":null,"unread_messages_count":0},{"_id":"54552c1e535c12baac04f1ef","last_message":"delete","last_message_date_sent":1415762982,"last_message_user_id":1761465,"name":null,"occupants_ids":[1758710,1761465],"photo":null,"type":3,"user_id":1761465,"xmpp_room_jid":null,"unread_messages_count":0},{"_id":"54553379535c12baac04f792","last_message":"test 2","last_message_date_sent":1415401209,"last_message_user_id":1761465,"name":null,"occupants_ids":[1758671,1761465],"photo":null,"type":3,"user_id":1758671,"xmpp_room_jid":null,"unread_messages_count":0}]}'

Delete Dialog Request

DialogID requested to be deleted:

  • 54552c1e535c12baac04f1ef




11-12 09:45:13.585 4247-4247/com.ideausa.qwhoo D/QBASDK﹕

=== REQUEST ==== eeccf565-e3b6-4a7b-b351-5a26f0e7e023 ===
REQUEST
DELETE https://api.quickblox.com/chat/Dialog/54552c1e535c12baac04f1ef.json
HEADERS
QuickBlox-REST-API-Version=0.1.1
QB-SDK=Android 2.0
QB-Token=211163fa3f3443ba1e7eee799b97d1fce9e86cf1
PARAMETERS
INLINE
DELETE https://api.quickblox.com/chat/Dialog/54552c1e535c12baac04f1ef.json

11-12 09:45:14.286 4247-4247/com.ideausa.qwhoo D/QBASDK﹕


*** RESPONSE *** eeccf565-e3b6-4a7b-b351-5a26f0e7e023 ***
STATUS : 200
HEADERS
Access-Control-Allow-Origin=*
Cache-Control=max-age=0, private, must-revalidate
Connection=keep-alive
Content-Type=application/json; charset=utf-8
Date=Wed, 12 Nov 2014 17:45:14 GMT
ETag="7215ee9c7d9dc229d2921a40e899ec5f"
QB-Token-ExpirationDate=2014-11-12 19:31:42 UTC
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.0.15
Status=200 OK
Transfer-Encoding=chunked
X-Rack-Cache=invalidate, pass
X-Request-Id=2ca6be1e23ca7838176f34fb98fc2445
X-Runtime=0.020776
X-UA-Compatible=IE=Edge,chrome=1
BODY
' '

Get Dialogs After Delete

Received Following Dialog IDs:

  • 54610ddd535c128d3b0030a2
  • 54553379535c12baac04f792




11-12 09:46:00.806 4247-6775/com.ideausa.qwhoo D/QBASDK﹕

=== REQUEST ==== 3ae23abf-5c34-4286-9b51-0b0ef00c2b71 ===
REQUEST
GET https://api.quickblox.com/chat/Dialog.json
HEADERS
QuickBlox-REST-API-Version=0.1.1
QB-SDK=Android 2.0
QB-Token=211163fa3f3443ba1e7eee799b97d1fce9e86cf1
PARAMETERS
limit=500
INLINE
GET https://api.quickblox.com/chat/Dialog.json?limit=500


11-12 09:46:01.967    4247-6775/com.ideausa.qwhoo D/QBASDK﹕ *********************************************************
*** RESPONSE *** 3ae23abf-5c34-4286-9b51-0b0ef00c2b71 ***
STATUS : 200
HEADERS
Access-Control-Allow-Origin=*
Cache-Control=max-age=0, private, must-revalidate
Connection=keep-alive
Content-Type=application/json; charset=utf-8
Date=Wed, 12 Nov 2014 17:46:02 GMT
ETag="9b65312909db6fb0e3def9382911bfe4"
QB-Token-ExpirationDate=2014-11-12 19:31:42 UTC
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.0.15
Status=200 OK
Transfer-Encoding=chunked
X-Rack-Cache=miss
X-Request-Id=566d13022c6f2ff17389abfdd4d873db
X-Runtime=0.018311
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"skip":0,"limit":500,"items":[{"_id":"54610ddd535c128d3b0030a2","last_message":"from you","last_message_date_sent":1415764229,"last_message_user_id":1877849,"name":null,"occupants_ids":[1761465,1877849],"photo":null,"type":3,"user_id":1877849,"xmpp_room_jid":null,"unread_messages_count":0},{"_id":"54553379535c12baac04f792","last_message":"test 2","last_message_date_sent":1415401209,"last_message_user_id":1761465,"name":null,"occupants_ids":[1758671,1761465],"photo":null,"type":3,"user_id":1758671,"xmpp_room_jid":null,"unread_messages_count":0}]}'

Create New Chat with same User

Dialog was created with same ID as previous "Deleted" Dialog:

  • 54552c1e535c12baac04f1ef
  • All previous messages appear




11-12 09:55:37.131 7308-7877/com.ideausa.qwhoo D/QBASDK﹕

=== REQUEST ==== 38410066-28f3-44a1-bf21-28a98fd7beec ===
REQUEST
POST https://api.quickblox.com/chat/Dialog.json
HEADERS
QuickBlox-REST-API-Version=0.1.1
QB-SDK=Android 2.0
QB-Token=7d69b92d436ef36ee6eb17616eb35b4e009994a0
PARAMETERS
type=3
occupants_ids=1758710
INLINE
POST https://api.quickblox.com/chat/Dialog.json?type=3&occupants_ids=1758710



11-12 09:55:37.931    7308-7877/com.ideausa.qwhoo D/QBASDK﹕ *********************************************************
*** RESPONSE *** 38410066-28f3-44a1-bf21-28a98fd7beec ***
STATUS : 201
HEADERS
Access-Control-Allow-Origin=*
Cache-Control=max-age=0, private, must-revalidate
Connection=keep-alive
Content-Type=application/json; charset=utf-8
Date=Wed, 12 Nov 2014 17:55:38 GMT
ETag="d8c1eca9f1d861821a03dce157458504"
QB-Token-ExpirationDate=2014-11-12 19:48:23 UTC
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.0.15
Status=201 Created
Transfer-Encoding=chunked
X-Rack-Cache=invalidate, pass
X-Request-Id=01b9c449ac7ed9ca0dede89568369239
X-Runtime=0.014954
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"_id":"54552c1e535c12baac04f1ef","last_message":"delete","last_message_date_sent":1415762982,"last_message_user_id":1761465,"name":null,"occupants_ids":[1758710,1761465],"photo":null,"type":3,"user_id":1761465,"xmpp_room_jid":null,"unread_messages_count":null}'

Last Get Dialogs Request

Received Following Dialog IDs:

  • 54610ddd535c128d3b0030a2
  • 54552c1e535c12baac04f1ef
  • 54553379535c12baac04f792

11-12 11:09:35.297 10623-13953/com.ideausa.qwhoo D/QBASDK﹕

=== REQUEST ==== 16e4c536-ee57-4870-8f33-c9c34f609fd6 ===
REQUEST
GET https://api.quickblox.com/chat/Dialog.json
HEADERS
QuickBlox-REST-API-Version=0.1.1
QB-SDK=Android 2.0
QB-Token=3e1ebc031d340929c4dee1d620b8a6e236c3278b
PARAMETERS
limit=500
INLINE
GET https://api.quickblox.com/chat/Dialog.json?limit=500

11-12 11:09:36.038 10623-13953/com.ideausa.qwhoo D/QBASDK﹕


*** RESPONSE *** 16e4c536-ee57-4870-8f33-c9c34f609fd6 ***
STATUS : 200
HEADERS
Access-Control-Allow-Origin=*
Cache-Control=max-age=0, private, must-revalidate
Connection=keep-alive
Content-Type=application/json; charset=utf-8
Date=Wed, 12 Nov 2014 19:09:36 GMT
ETag="aa9c77169829585e649b33bea9f42fbe"
QB-Token-ExpirationDate=2014-11-12 21:09:26 UTC
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.0.15
Status=200 OK
Transfer-Encoding=chunked
X-Rack-Cache=miss
X-Request-Id=c43c34fe0d4055bdae9f249e8f712ac2
X-Runtime=0.016919
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"skip":0,"limit":500,"items":[{"_id":"54610ddd535c128d3b0030a2","last_message":"from you ","last_message_date_sent":1415764229,"last_message_user_id":1877849,"name":null,"occupants_ids":[1761465,1877849],"photo":null,"type":3,"user_id":1877849,"xmpp_room_jid":null,"unread_messages_count":0},{"_id":"54552c1e535c12baac04f1ef","last_message":"delete","last_message_date_sent":1415762982,"last_message_user_id":1761465,"name":null,"occupants_ids":[1758710,1761465],"photo":null,"type":3,"user_id":1761465,"xmpp_room_jid":null,"unread_messages_count":0},{"_id":"54553379535c12baac04f792","last_message":"test 2","last_message_date_sent":1415401209,"last_message_user_id":1761465,"name":null,"occupants_ids":[1758671,1761465],"photo":null,"type":3,"user_id":1758671,"xmpp_room_jid":null,"unread_messages_count":0}]}'

from quickblox-android-sdk.

ltburruel avatar ltburruel commented on July 28, 2024

Never mind we have changed the functionality of our app and it will work fine the way it is. Thank you!

from quickblox-android-sdk.

Shahjahan786 avatar Shahjahan786 commented on July 28, 2024

I'm using sdk 3.5.0 but still it happens to me

from quickblox-android-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.