No such method disconnect

This commit is contained in:
JC Brand 2019-04-27 15:01:15 +02:00
parent b9e5658112
commit 51d0dc8d23
3 changed files with 3 additions and 3 deletions

2
dist/converse.js vendored
View File

@ -64844,7 +64844,7 @@ _converse.initialize = async function (settings, callback) {
_converse.setDisconnectionCause(strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].Status.AUTHFAIL, undefined, true);
_converse.disconnect();
_converse.api.connection.disconnect();
return;
}

View File

@ -1294,7 +1294,7 @@ _converse.initialize = async function (settings, callback) {
"authentication='login' then you also need to provide a password.");
}
_converse.setDisconnectionCause(Strophe.Status.AUTHFAIL, undefined, true);
_converse.disconnect();
_converse.api.connection.disconnect();
return;
}
const resource = Strophe.getResourceFromJid(this.jid);

View File

@ -43068,7 +43068,7 @@ _converse.initialize = async function (settings, callback) {
_converse.setDisconnectionCause(strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].Status.AUTHFAIL, undefined, true);
_converse.disconnect();
_converse.api.connection.disconnect();
return;
}