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

feat: allow optimistically added messages in local state #1064

Merged
merged 3 commits into from
Nov 11, 2022

Conversation

vishalnarkhede
Copy link
Contributor

@vishalnarkhede vishalnarkhede commented Nov 1, 2022

CLA

  • I have signed the Stream CLA (required).
  • Code changes are tested

Description of the changes, What, Why and How?

Changes to support optimistic DB update - GetStream/stream-chat-react-native#1758

2nd param to function addMessagesSorted determines weather messages being added may already exist in state or not. If they already exist, that means they were optimistically added, but timestamp of the message needs to be updated with the one stored on backend.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2022

Size Change: -9 B (0%)

Total Size: 314 kB

Filename Size Change
dist/browser.es.js 68.6 kB -2 B (0%)
dist/browser.js 69.6 kB -3 B (0%)
dist/index.es.js 68.7 kB -2 B (0%)
dist/index.js 69.7 kB -2 B (0%)
ℹ️ View Unchanged
Filename Size
dist/browser.full-bundle.min.js 37.3 kB

compressed-size-action

@vishalnarkhede vishalnarkhede marked this pull request as ready for review November 1, 2022 13:43
@vanGalilea vanGalilea self-requested a review November 11, 2022 14:18
@vanGalilea vanGalilea merged commit 16d9363 into master Nov 11, 2022
@vanGalilea vanGalilea deleted the feat/db-optimistic-update branch November 11, 2022 14:21
@github-actions github-actions bot mentioned this pull request Nov 11, 2022
vishalnarkhede added a commit that referenced this pull request Nov 15, 2022
@github-actions github-actions bot mentioned this pull request Nov 15, 2022
vishalnarkhede added a commit that referenced this pull request Nov 15, 2022
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.

2 participants