Attempt to fix chat getting stuck on 'Authenticating...' after reconnecting.

This commit is contained in:
flash 2024-08-28 21:14:19 +00:00
parent 46549845b9
commit f1e787c807

View file

@ -100,7 +100,10 @@ const MamiSockChatHandlers = function(
Umi.User.setCurrentUser(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)
ctx.views.pop();