Skip to content

No response from QB.chat.muc.join(dialogJid) method #102

@123AndGo

Description

@123AndGo

Hello, since yesterday (21/01/2016) our group chats aren't working because we get no response after calling the QB.chat.muc.join(dialogJid) method. We also see that automatic "presence" messages also don't get any responses.

The users login and connect to the chat (QB.chat.connect()) without any problem, but the join method suddenly stopped working without us having made any changes.

You can test this issue with this code (we have tested it on v1.16.1 and v2.0.3 of the SDK):

var CONFIG = {  
    chatProtocol: {
        active: 2 // set 1 to use BOSH, set 2 to use WebSockets (default)
    },
    debug: {mode: 1} // set DEBUG mode
};

var CREDENTIALS = {
  appId: 34012,
  authKey: 'pwSCOResb4R2Lka',
  authSecret: 'E4sztXGxw5Qk8md'
};

QB.init(CREDENTIALS.appId, CREDENTIALS.authKey, CREDENTIALS.authSecret, CONFIG);

QB.createSession(function(e, r){
    var params = {login: 'test@test.com', password: '12345678'};
    QB.login(params, function(e,r){
        if(r) {                        
            QB.chat.connect({userId: r.id, password: '12345678'}, function(e,roster){
                if(!e){
                    QB.chat.muc.join("34012_56a15ec7a0eb4791ae0003cc@muc.chat.quickblox.com",function(r){console.log(r);});
                }
            });
        }
    });
});

And this are the screenshots of the console logs:
ss1
ss2
ss3

This is really urgent for us because we haven't been able to do any further development and we have a very close deadline for launching the chat feature of our group dating app, so we would really appreciate your help.

Thank you very much. All my best.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions