Skip to content

Commit c332517

Browse files
zsadmÁdám Zsoldi
authored and
Ádám Zsoldi
committed
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
1 parent b205b63 commit c332517

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

user.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,10 @@ func (c *Client) CreateGuestUser(ctx context.Context, user *User) (*GuestUserRes
232232
}
233233

234234
type ExportUserResponse struct {
235-
*User
236-
Response
235+
User *User `json:"user"`
236+
Messages []*Message `json:"messages"`
237+
Reactions []*Reaction `json:"reactions"`
238+
Duration string `json:"duration"`
237239
}
238240

239241
// ExportUser exports the user with the given target user ID.

0 commit comments

Comments
 (0)