Fix userlist and chat after reconnection in a shared worker

This commit is contained in:
yflory
2019-04-16 12:09:39 +02:00
parent 652583eec1
commit 9b9cedd191
5 changed files with 21 additions and 6 deletions

View File

@@ -133,7 +133,7 @@ define(['json.sortify'], function (Sortify) {
if (idx === -1) { console.log('Error: ' + ev + ' not in members'); return; }
members.splice(idx, 1);
if (!meta.user) { return; }
change(false);
change(true);
});
sframeChan.on('EV_RT_DISCONNECT', function () {
members = [];