- 29 Jul, 2019 7 commits
-
-
JC Brand authored
Instead we should only query for newly created chats.
-
JC Brand authored
`sendIQ` now takes a flag to turn of rejection of the promise and to resolve on error IQs instead.
-
JC Brand authored
-
JC Brand authored
-
JC Brand authored
-
JC Brand authored
even if the `_converse.bosh_session` instance does not exist. We do this to avoid trying to reconnect with stale tokens upon reconnection. Especially relevant for anonymous connections, but could also be applicable when switching between websocket and BOSH connections when reconnecting. Also renamed `startNewBOSHSession` to `startNewPreboundBOSHSession`
-
JC Brand authored
I.e. also when we're reconnecting. Otherwise the `_converse.bosh_session` object doesn't get recreated and we don't cache the BOSH tokens.
-
- 26 Jul, 2019 10 commits
-
-
JC Brand authored
above logging in with passed in JID and password, since the password might be an expired token.
-
JC Brand authored
-
JC Brand authored
otherwise values get tacked on, causing problems when reconnecting.
-
JC Brand authored
Because when we reconnect anonymously, we get a new JID, so it's as if it's a completely new user.
-
JC Brand authored
So that the BOSH connection will be restored before we trigger `connectionInitialized`
-
JC Brand authored
-
JC Brand authored
It's unlikely that `keepalive` needs to be set to `false`, but there are some edge cases where it might be useful. Here's a breakdown of the different configurations of `keepalive` and `auto_join`: --- * auto_login: false, keepalive: true This is the default config. Users need to log in manually, but then Converse will try to reconnect them when the page reloads. * auto_login: true, keepalive: true Also very popular configuration. Used with `credentials_url` or `prebind_url`. * auto_login = `true`, keepalive = `false` Not sure what this could be useful for. No currently known application. * auto_login = `false`, keepalive = `false` Useful when you want some kind of specific action to trigger login, but you don't want to maintain that state across page reloads. Also relevant when using a websocket connection with anonymous login. With websocket it's impossible to maintain anonymous sessions across page reload because the the session gets removed server-side as soon as the websocket connection drops and the server won't accept a full JID with password for an anonymous connection anyway (which could happen upon page reload when Converse tries to login in again if `keepalive` was `true`).
-
JC Brand authored
triggering connectionInitialized. That way, when listening for `connectionInitialized`, we'll know when it fires whether we've attached to a BOSH connection or not.
-
Weblate (bot) authored
* Translated using Weblate (Norwegian Bokmål) Currently translated at 70.9% (268 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/nb_NO/ * Translated using Weblate (Hebrew) Currently translated at 100.0% (378 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/he/ * Translated using Weblate (German) Currently translated at 100.0% (378 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/ * Translated using Weblate (French) Currently translated at 100.0% (378 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/ * Translated using Weblate (Spanish) Currently translated at 100.0% (378 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/es/ * Translated using Weblate (Japanese) Currently translated at 98.1% (371 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ja/ * Translated using Weblate (Galician) Currently translated at 100.0% (378 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/ * Translated using Weblate (Lithuanian) Currently translated at 80.4% (304 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/lt/ * Added translation using Weblate (Portuguese) * Translated using Weblate (Arabic) Currently translated at 81.7% (309 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ar/ * Translated using Weblate (Czech) Currently translated at 100.0% (378 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/cs/ * Translated using Weblate (Chinese (Simplified)) Currently translated at 38.4% (145 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hans/ * Translated using Weblate (Turkish) Currently translated at 4.8% (18 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/tr/ * Translated using Weblate (Portuguese) Currently translated at 83.1% (314 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt/ * Translated using Weblate (Portuguese) Currently translated at 82.5% (312 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt/ * Translated using Weblate (Romanian) Currently translated at 34.4% (130 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ro/ * Translated using Weblate (Romanian) Currently translated at 38.4% (145 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ro/ * Translated using Weblate (Romanian) Currently translated at 54.0% (204 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ro/ * Translated using Weblate (Arabic) Currently translated at 86.5% (327 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ar/ * Translated using Weblate (Romanian) Currently translated at 54.8% (207 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ro/ * Translated using Weblate (Portuguese (Brazil)) Currently translated at 63.2% (239 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt_BR/ * Translated using Weblate (Portuguese) Currently translated at 82.8% (313 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt/ * Translated using Weblate (Basque) Currently translated at 94.2% (356 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/eu/ * Translated using Weblate (Galician) Currently translated at 100.0% (378 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/ * Translated using Weblate (Turkish) Currently translated at 16.9% (64 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/tr/ * Translated using Weblate (Chinese (Simplified)) Currently translated at 40.5% (153 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hans/ * Translated using Weblate (Polish) Currently translated at 80.7% (305 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pl/ * Translated using Weblate (Chinese (Simplified)) Currently translated at 40.2% (152 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hans/ * Translated using Weblate (Portuguese (Brazil)) Currently translated at 77.5% (293 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt_BR/ * Translated using Weblate (Portuguese) Currently translated at 88.9% (336 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt/ * Translated using Weblate (Russian) Currently translated at 96.8% (366 of 378 strings) Translation: Converse.js/Translations Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ru/
-
JC Brand authored
-
- 25 Jul, 2019 4 commits
- 24 Jul, 2019 1 commit
-
-
JC Brand authored
-
- 23 Jul, 2019 5 commits
-
-
Stanislav authored
* Fix: async SetUserJID
-
JC Brand authored
If `auto_login` is false, we shouldn't log in, so we only try to log in when it is true. Otherwise we still try to restore the BOSH session (if applicable).
-
JC Brand authored
rename `autoJoin` to `connect`
-
JC Brand authored
- Split between `login` auth and the rest (`external`, `anonymous`, `prebind`) - It doesn't make sense to pass along credentials when not using `login` auth so avoid that flow. - It's not necessary to pass the `reconnecting` flag to `attemptNonPreboundSession`
-
JC Brand authored
-
- 22 Jul, 2019 5 commits
- 12 Jul, 2019 4 commits
-
-
JC Brand authored
So that we can remove the textarea if we're a visitor in a moderated room.
-
JC Brand authored
-
JC Brand authored
Instead optimize in other ways. Also: - Don't fade in when `animate` is false. - `trimChats` now gets called in `afterShown`. - Add now event `beforeShowingChatView`
-
JC Brand authored
-
- 11 Jul, 2019 4 commits