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

fix: make _hydrateMembers merge objects instead of overriding them #1397

Merged
merged 6 commits into from
Nov 28, 2024

Conversation

arnautov-anton
Copy link
Contributor

@arnautov-anton arnautov-anton commented Nov 25, 2024

Description of the changes, What, Why and How?

Fixes: GetStream/stream-chat-react#2538

If the channel has been already established and exists within cache, hydrating channel members from thread response which was queried with limited amount of members (or zero even) will results in members property override, deleting previously known members.

Copy link
Contributor

github-actions bot commented Nov 25, 2024

Size Change: 0 B

Total Size: 458 kB

ℹ️ View Unchanged
Filename Size
dist/browser.es.js 99.9 kB
dist/browser.full-bundle.min.js 56.6 kB
dist/browser.js 101 kB
dist/index.es.js 99.9 kB
dist/index.js 101 kB

compressed-size-action

@arnautov-anton arnautov-anton changed the title Adjust _hydrateMembers method to merge objects instead of overriding fix: make _hydrateMembers merge objects instead of overriding them Nov 25, 2024
@arnautov-anton arnautov-anton force-pushed the fix/channel-members-hydration branch from 04c0406 to 655987d Compare November 25, 2024 19:16
@arnautov-anton arnautov-anton marked this pull request as draft November 26, 2024 10:15
@arnautov-anton arnautov-anton marked this pull request as ready for review November 26, 2024 11:02
@arnautov-anton arnautov-anton force-pushed the fix/channel-members-hydration branch from 72762d4 to 4d1b395 Compare November 26, 2024 11:04
src/channel.ts Outdated Show resolved Hide resolved
@arnautov-anton arnautov-anton merged commit 6a51159 into master Nov 28, 2024
1 of 5 checks passed
@arnautov-anton arnautov-anton deleted the fix/channel-members-hydration branch November 28, 2024 14:52
@github-actions github-actions bot mentioned this pull request Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Lost Member in channel after open Thread
2 participants