aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Users/UserService.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slskd/Users/UserService.cs b/src/slskd/Users/UserService.cs
index 3ce827c8..09d70d2e 100644
--- a/src/slskd/Users/UserService.cs
+++ b/src/slskd/Users/UserService.cs
@@ -444,7 +444,7 @@ namespace slskd.Users
{
UserDictionary.AddOrUpdate(
key: username,
- addValue: new User() { Status = new Status { IsPrivileged = true } },
+ addValue: new User() { Username = username, Status = new Status { IsPrivileged = true } },
updateValueFactory: (key, user) => user with { Username = username, Status = user.Status with { IsPrivileged = true } });
}
}
@@ -564,7 +564,7 @@ namespace slskd.Users
{
UserDictionary.AddOrUpdate(
key: username,
- addValue: new User() { Statistics = statistics },
+ addValue: new User() { Username = username, Statistics = statistics },
updateValueFactory: (key, user) => user with { Username = username, Statistics = statistics });
}
@@ -572,7 +572,7 @@ namespace slskd.Users
{
UserDictionary.AddOrUpdate(
key: username,
- addValue: new User() { Status = status },
+ addValue: new User() { Username = username, Status = status },
updateValueFactory: (key, user) => user with { Username = username, Status = status });
}
}