aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Users/UserService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-11-08 10:15:14 -0600
committerGitHub <noreply@github.com>2026-11-08 10:15:14 -0600
commit169bb8a3c0098599a617d8553e93c694bd813795 (patch)
tree4d825302717fc76d543b6a24469ad23a605cd5c8 /src/slskd/Users/UserService.cs
parent4eaa2b13e2da250d7b89073a15e9f1e077661fd7 (diff)
parentcefdcd02e28b1f02f546002fdd475de4fa03e839 (diff)
downloadslskd-169bb8a3c0098599a617d8553e93c694bd813795.tar.gz
Merge branch 'master' into dependabot/npm_and_yarn/src/web/follow-redirects-1.16.2
Diffstat (limited to 'src/slskd/Users/UserService.cs')
-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 51b47d5b..046a87e5 100644
--- a/src/slskd/Users/UserService.cs
+++ b/src/slskd/Users/UserService.cs
@@ -452,7 +452,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 } });
}
}
@@ -572,7 +572,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 });
}
@@ -580,7 +580,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 });
}
}