From c332517d619bd4b27ddcfcda8137ef18f48d5038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Zsoldi?= <156650378+zsadm@users.noreply.github.com> Date: Wed, 17 Jul 2024 09:15:19 +0200 Subject: [PATCH] Fix ExportUserResponse struct to match the exact structure to the response of the GET /users/{user_id}/export endpoint The actual response has a User object and the user's messages and reactions. https://getstream.io/chat/docs/rest/#product:chat-exportuser --- user.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/user.go b/user.go index 55a3b74c..5a0382d6 100644 --- a/user.go +++ b/user.go @@ -232,8 +232,10 @@ func (c *Client) CreateGuestUser(ctx context.Context, user *User) (*GuestUserRes } type ExportUserResponse struct { - *User - Response + User *User `json:"user"` + Messages []*Message `json:"messages"` + Reactions []*Reaction `json:"reactions"` + Duration string `json:"duration"` } // ExportUser exports the user with the given target user ID.