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,7 +100,10 @@ const MamiSockChatHandlers = function(
|
||||||
Umi.User.setCurrentUser(userInfo);
|
Umi.User.setCurrentUser(userInfo);
|
||||||
Umi.Users.Add(userInfo);
|
Umi.Users.Add(userInfo);
|
||||||
|
|
||||||
sbUsers.createEntry(ev.detail.user);
|
if(sbUsers.hasEntry(ev.detail.user.id))
|
||||||
|
sbUsers.updateEntry(ev.detail.user.id, ev.detail.user);
|
||||||
|
else
|
||||||
|
sbUsers.createEntry(ev.detail.user);
|
||||||
|
|
||||||
if(ctx.views.count > 1)
|
if(ctx.views.count > 1)
|
||||||
ctx.views.pop();
|
ctx.views.pop();
|
||||||
|
|
Loading…
Reference in a new issue