From c33fd207076d63242f8d0be112051967ddf891db Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 28 Oct 2026 19:06:32 -0500 Subject: set User property of user dict items --- src/slskd/Users/UserService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/slskd/Users/UserService.cs') 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 }); } } -- cgit v1.2.3