diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-11-07 23:16:26 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-07 23:16:26 -0600 |
| commit | cefdcd02e28b1f02f546002fdd475de4fa03e839 (patch) | |
| tree | 95bb26f4ed7b60e3739bcd884966a19be1e9ee07 /src/slskd/Users/UserService.cs | |
| parent | 2b827344d11e7490b323defa898264cadbdb6089 (diff) | |
| parent | dbc308d5e408a2e194a0c70a8fc7592f776aaf11 (diff) | |
| download | slskd-cefdcd02e28b1f02f546002fdd475de4fa03e839.tar.gz | |
Merge pull request #1913 from slskd/bugs
Fix a random assortment of bugs
Diffstat (limited to 'src/slskd/Users/UserService.cs')
| -rw-r--r-- | src/slskd/Users/UserService.cs | 6 |
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 }); } } |
