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

Deleted messages re-show up in chat #2417 #2437

Merged
merged 2 commits into from
Dec 28, 2023

Conversation

budnik9
Copy link
Contributor

@budnik9 budnik9 commented Dec 27, 2023

  • PR title equals to the ticket name
  • I added the ticket to the Development section of this PR.

What was changed?

  • Refactored subscription to discussion messages so that only needed messages are updated and unnecessary ones are deleted

@budnik9 budnik9 self-assigned this Dec 27, 2023
Copy link

netlify bot commented Dec 27, 2023

Deploy Preview for preview-common ready!

Name Link
🔨 Latest commit b278025
🔍 Latest deploy log https://app.netlify.com/sites/preview-common/deploys/658d4d6d1827cc00085e3fae
😎 Deploy Preview https://deploy-preview-2437--preview-common.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@budnik9 budnik9 linked an issue Dec 27, 2023 that may be closed by this pull request
@elatif2020
Copy link
Collaborator

@budnik9 notice the deploy preview failed here

@roienatan
Copy link
Collaborator

@budnik9 notice the deploy preview failed here

@budnik9 merge dev to your branch to fix this.

const added: DiscussionMessage[] = [];
const removed: DiscussionMessage[] = [];

snapshot.docChanges().forEach((docChange) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead of this, we somehow can filter deleted messages inside query?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need filter them out, we need them to remove from the cache

@budnik9 budnik9 requested a review from pvm-code December 28, 2023 11:15
@pvm-code pvm-code merged commit 8dd2e4e into dev Dec 28, 2023
5 checks passed
@pvm-code pvm-code deleted the bugfix/CW-2417-deleted-messsage-appears-in-chat branch December 28, 2023 12:47
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.

Deleted messages re-show up in chat
4 participants