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 issue when removing media in the middle of a paragraph #1060

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

planarvoid
Copy link
Contributor

@planarvoid planarvoid commented Sep 15, 2023

Fix

This PR fixes a crash that's happening when a media item is removed in the middle of a paragraph. The fix is to ignore the spans that are wrapping the media, only to handle the ones starting right after the media end.

Test

  1. Run the unit tests without the fix
  2. Notice the PARAGRAPH span must start at paragraph boundary exception
  3. Run the unit tests with the fix

Review

@danilo04

Make sure strings will be translated:

  • If there are new strings that have to be translated, I have added them to the client's strings.xml as a part of the integration PR.

Copy link
Contributor

@danilo04 danilo04 left a comment

Choose a reason for hiding this comment

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

Hi @planarvoid, thank you for the fix. I tested different escenarios around galleries and other placeholders and everything is working as expected.

@danilo04 danilo04 merged commit 29b449e into trunk Sep 15, 2023
2 checks passed
@danilo04 danilo04 deleted the fix/crash-when-removing-media branch September 15, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants