WIP.
This commit is contained in:
parent
c895778175
commit
61dfa0b79f
@ -133,6 +133,7 @@ window.initConverse = async function initConverse ({
|
|||||||
|
|
||||||
// TODO: params.clear_messages_on_reconnection = true when muc_mam will be available.
|
// TODO: params.clear_messages_on_reconnection = true when muc_mam will be available.
|
||||||
|
|
||||||
|
let isAuthenticated: boolean = false
|
||||||
if (authenticationUrl !== '') {
|
if (authenticationUrl !== '') {
|
||||||
const auth = await authenticatedMode(authenticationUrl)
|
const auth = await authenticatedMode(authenticationUrl)
|
||||||
if (auth) {
|
if (auth) {
|
||||||
@ -145,10 +146,18 @@ window.initConverse = async function initConverse ({
|
|||||||
} else {
|
} else {
|
||||||
params.muc_nickname_from_jid = true
|
params.muc_nickname_from_jid = true
|
||||||
}
|
}
|
||||||
|
isAuthenticated = true
|
||||||
// FIXME: use params.oauth_providers?
|
// FIXME: use params.oauth_providers?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isAuthenticated) {
|
||||||
|
console.log('User is not authenticated.')
|
||||||
|
// TODO: try to make these params work
|
||||||
|
// params.auto_register_muc_nickname = true
|
||||||
|
// params.muc_show_logs_before_join = true
|
||||||
|
}
|
||||||
|
|
||||||
if (!advancedControls) {
|
if (!advancedControls) {
|
||||||
// These params are for externals XMPP servers.
|
// These params are for externals XMPP servers.
|
||||||
// NB: because we dont know if external servers have authentication mecanism,
|
// NB: because we dont know if external servers have authentication mecanism,
|
||||||
|
Loading…
Reference in New Issue
Block a user