Attempt to fix chat getting stuck on 'Authenticating...' after reconnecting.
This commit is contained in:
parent
46549845b9
commit
f1e787c807
1 changed files with 4 additions and 1 deletions
|
@ -100,6 +100,9 @@ const MamiSockChatHandlers = function(
|
||||||
Umi.User.setCurrentUser(userInfo);
|
Umi.User.setCurrentUser(userInfo);
|
||||||
Umi.Users.Add(userInfo);
|
Umi.Users.Add(userInfo);
|
||||||
|
|
||||||
|
if(sbUsers.hasEntry(ev.detail.user.id))
|
||||||
|
sbUsers.updateEntry(ev.detail.user.id, ev.detail.user);
|
||||||
|
else
|
||||||
sbUsers.createEntry(ev.detail.user);
|
sbUsers.createEntry(ev.detail.user);
|
||||||
|
|
||||||
if(ctx.views.count > 1)
|
if(ctx.views.count > 1)
|
||||||
|
|
Loading…
Reference in a new issue