Fixed weird behaviour caused by development polyfill.

This commit is contained in:
flash 2024-05-14 22:08:32 +00:00
parent c267b1d73b
commit 3247a46d19
2 changed files with 3 additions and 1 deletions

View file

@ -191,7 +191,6 @@ Umi.UI.Messages = (function() {
bType = msg.type.substring(7);
bIsError = msg.detail.error;
bArgs = msg.detail.args;
msgAuthor = Umi.Users.FindExact(bArgs[0]) ?? Umi.Users.FindExact('~' + bArgs[0]);
}
soundName = bIsError ? 'error' : 'server';

View file

@ -182,6 +182,9 @@ Umi.Users = (function() {
return found;
},
FindExact: function(userName) {
if(typeof userName !== 'string')
return null;
userName = userName.toLowerCase();
for(const user of users.values())