diff --git a/controllers/chat.go b/controllers/chat.go index 9b4305647..e8f2c7649 100644 --- a/controllers/chat.go +++ b/controllers/chat.go @@ -88,7 +88,7 @@ func RegisterAnonymousChatUser(w http.ResponseWriter, r *http.Request) { response := registerAnonymousUserResponse{ ID: newUser.ID, AccessToken: accessToken, - DisplayName: proposedNewDisplayName, + DisplayName: newUser.DisplayName, } w.Header().Set("Content-Type", "application/json")