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: update gallery on message deleted #4457

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Jan 6, 2025

Closes #4318.

})
}
)
this.cleanup.push(toCleanup)
Copy link
Member

Choose a reason for hiding this comment

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

Why is this an array? Can componentDidMount be called multiple times, without componentWillUnmount being called before?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think so. It's an array because we might want to add something else there later, we have similar cleanup arrays in the codebase.

@WofWca WofWca force-pushed the wofwca/update-gallery-on-messages-deleted branch from 18fdbaa to f350198 Compare January 6, 2025 20:00
@WofWca WofWca merged commit 59dc2d7 into main Jan 6, 2025
8 of 11 checks passed
@WofWca WofWca deleted the wofwca/update-gallery-on-messages-deleted branch January 6, 2025 20:00
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.

File/image still displayed in media library after deletion until tab is reloaded.
2 participants