QuickBlox/quickblox-javascript-sdk

Privacy list & authentication issues

kasterlod opened this issue · 0 comments

Hello! I have some problems with implementation. Docs are really unclear, I've tried almost everything and still without success..)

  1. Configuration:
    Feature: 1-1 chat, version: 2.12.0, browser environment. User is successfully created while signIn. User token is created exactly by docs and returns to user by backend. QB is initialized at first with correct params. (https://quickblox.com/developers/Authentication_and_Authorization#API_Session_Creation)

  2. Issues:

  • QB.chat.connect -> Docs provide information that it should be connected with userId and user session token, but ONLY what's make auth successfully is jid created from current userId and session token as password.
  • QB.chat.send -> is working only when sending to jid created from recipientId, not working when sending directly to recipientId
  • privacy list, on error message ->
    [1]. When sending to recipient jid, it doesn't care if recipientId or recipient jid is in blocked, message always is sent.
    [2]. When sending to recipient id, message never arrive to recipient and is not stored in history BUT if recipient id is in privacy list, error message callback for sender is fired (wow! but I cant send message then even if user is not blocked!).
    Each time, logs don't contains any errors, always everything is sent.

I've checked almost all and have no ideas and no strength to checking it more. PLEASE give me some feedback how to make it working or where I can looking for any solutions.
Or just give me an answer that privacy lists are not working and I need to do that on my own..
@dimaspirit
thanks in advance!!