Revert "Store session per full JID"
This reverts commit 607d798665
.
Unfortunately this doesn't solve the issue because we have a
chicken-and-egg problem due to not knowing the resource beforehand.
So what happens after this change is that we never resume XEP-0198
sessions but instead always start a new one.
This commit is contained in:
parent
98215deb21
commit
8d9d0a1ef4
|
@ -506,10 +506,8 @@ _converse.initConnection = function () {
|
|||
|
||||
|
||||
async function initUserSession (jid) {
|
||||
// XXX: Important to use full JID, otherwise we run into a bug where two
|
||||
// tabs with share the same XEP-0198 SM-ID, causing them to go into a
|
||||
// reconnection-loop.
|
||||
const id = `converse.session-${jid}`;
|
||||
const bare_jid = Strophe.getBareJidFromJid(jid);
|
||||
const id = `converse.session-${bare_jid}`;
|
||||
if (!_converse.session || _converse.session.get('id') !== id) {
|
||||
_converse.session = new Backbone.Model({id});
|
||||
_converse.session.browserStorage = new BrowserStorage.session(id);
|
||||
|
|
Loading…
Reference in New Issue
Block a user