QuickBlox/quickblox-javascript-sdk

ContactList functionality not working correctly unless both users are online?

BertoGz opened this issue · 0 comments

Steps to reproduce:

  1. Have User A online while User B is away and logged out.

  2. User A Sends contact Request to B

  3. Login to User B and call QB.chat.roster.get An empty object will be returned.
    during this stage only user A sees the QB.chat.roster.get payload correctly.

  4. Restart the process but make sure both A and B are logged in this time.

  5. User A sends the contact request

  6. User B calls QB.chat.roster.get this time it will return the correct payload.

As it seems, both users have to be online for the contact List connection to be created correctly.