Skip to content

image missing in PollVote.user #171

@jakubdrozdek

Description

@jakubdrozdek

Which package/packages do you use?
"@stream-io/feeds-react-sdk": "^0.1.28",

Describe the bug
The User type, which describes user fields nested under Polls, is not aligned with UserResponse and is missing the image field; however, the value itself is present in the object returned via WebSocket or API endpoint.

To Reproduce
Steps to reproduce the behavior:

  1. Get a poll's state from client.pollFromState(...).state by using useStateStore
  2. Inspect poll.latest_votes_by_option or own_votes_by_option_id.
  3. Notice that the .user field doesn't have image in the type definition.

Expected behavior
User and UserResponse should be aligned.

Screenshots
If applicable, add screenshots to help explain your problem.

Image Image

Version

Env:

Fill out what's applicable

React / JS client

  • Browser [e.g. chrome, safari] - Brave

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions