diff options
author | Rory& <root@rory.gay> | 2024-05-02 07:20:13 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-05-02 07:20:13 +0200 |
commit | 508c694c3d551cddb3b15c1b0d4787dae3c00530 (patch) | |
tree | babe9f57e40f0014a9158eaf9f798c434ce9d380 /Tests/LibMatrix.HomeserverEmulator/Controllers/Users/ProfileController.cs | |
parent | Fixes (diff) | |
download | LibMatrix-508c694c3d551cddb3b15c1b0d4787dae3c00530.tar.xz |
HomeserverEmulator work
Diffstat (limited to 'Tests/LibMatrix.HomeserverEmulator/Controllers/Users/ProfileController.cs')
-rw-r--r-- | Tests/LibMatrix.HomeserverEmulator/Controllers/Users/ProfileController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibMatrix.HomeserverEmulator/Controllers/Users/ProfileController.cs b/Tests/LibMatrix.HomeserverEmulator/Controllers/Users/ProfileController.cs index c717ba5..98c41da 100644 --- a/Tests/LibMatrix.HomeserverEmulator/Controllers/Users/ProfileController.cs +++ b/Tests/LibMatrix.HomeserverEmulator/Controllers/Users/ProfileController.cs @@ -46,7 +46,7 @@ public class ProfileController(ILogger<ProfileController> logger, TokenService t ErrorCode = "M_NOT_FOUND", Error = "User not found." }; - user.Profile[key] = value[key]; + user.Profile[key] = value[key]?.AsObject(); return value; } } \ No newline at end of file |