about summary refs log tree commit diff
path: root/Tests/LibMatrix.HomeserverEmulator/Controllers/Users/ProfileController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LibMatrix.HomeserverEmulator/Controllers/Users/ProfileController.cs')
-rw-r--r--Tests/LibMatrix.HomeserverEmulator/Controllers/Users/ProfileController.cs2
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