Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: The client.getThread() method is not returning complete data. Specifically, the custom field is missing. #2592

Closed
vihan85 opened this issue Dec 23, 2024 · 1 comment · Fixed by GetStream/stream-chat-js#1428
Assignees
Labels
bug Something isn't working Chat status:confirmed Described issue has been reproduced by the repo maintainer

Comments

@vihan85
Copy link

vihan85 commented Dec 23, 2024

Describe the bug

when I used a client.getThread() to receive a thread and found the response from the function returned incomplete data compared to the specific api it was missing the title and metadata fields.

const getCurrentThread = async () => {
    const threadResponse = await client.getThread(threadId, {
      reply_limit: 0 // optional,
    });
  console.log(threadResponse);

    // eslint-disable-next-line
  };

Screenshot

Header
Screenshot 2024-12-23 at 16 46 00

Payload
Screenshot 2024-12-23 at 16 46 20

Respond
Screenshot 2024-12-23 at 16 38 01

Expected behavior
Returns all customized fields

Package version
stream-chat-react: ^12.6.0
stream-chat-css:^5.4.0
stream-chat: ^8.40.9

@arnautov-anton
Copy link
Contributor

Hey, @vihan85,

this has now been fixed and is available in [email protected]. See description of this PR for more information, documentation is coming soon and will contain similar information as information in the PR description.

Let me know if you have any other questions. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Chat status:confirmed Described issue has been reproduced by the repo maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants