diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c14671f..55ace952 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/conversejs/builtin.ts b/conversejs/builtin.ts index 05899e46..b140e587 100644 --- a/conversejs/builtin.ts +++ b/conversejs/builtin.ts @@ -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)