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,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)