Trying to fix an OBS cache problem, where OBS can't connect to the chat after a plugin update.

This commit is contained in:
John Livingston 2022-01-03 18:27:56 +01:00
parent 5943e059f9
commit a3484ac963
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## 5.2.1
### Fixes
* Trying to fix an OBS cache problem, where OBS can't connect to the chat after a plugin update.
## 5.2.0
### Features

View File

@ -180,6 +180,11 @@ window.initConverse = async function initConverse ({
console.log('User is not authenticated.')
if (forceReadonly) {
params.nickname = 'Viewer ' + (new Date()).getTime().toString()
// To avoid some bugs in OBS, trying to clear the session storage before ConverseJS connects.
if (window.sessionStorage?.clear) {
window.sessionStorage.clear()
}
}
// TODO: try to make these params work
// params.muc_nickname_from_jid = true => compute the muc nickname from the jid (will be random here)