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: line break unhandled event (WPB-3320) #2043

Merged
merged 4 commits into from
Aug 2, 2023

Conversation

alexandreferris
Copy link
Contributor


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

When sending a message with 2 lines, the soft line break was not being handled and rendering first and second line together. example:


Causes (Optional)

SoftLineBreak was not being handled.

Solutions

Add handling of SoftLineBreak so it renders correctly (as in the image below)

Testing

How to Test

  • Open App
  • Open Conversation
  • Receive a message like this:
message1
message2

message 3
  • Should be handled as 3 correct lines and not only 2

Attachments (Optional)

@alexandreferris alexandreferris changed the base branch from develop to release/candidate August 2, 2023 11:48
@CLAassistant
Copy link

CLAassistant commented Aug 2, 2023

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

Test Results

512 tests   511 ✔️  23s ⏱️
  74 suites      1 💤
  74 files        0

Results for commit 21bbb34.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

APKs built during tests are available here. Scroll down to Artifacts!

@alexandreferris alexandreferris requested review from a team, typfel, borichellow, MohamadJaara, vitorhugods and mchenani and removed request for a team August 2, 2023 12:43
@alexandreferris alexandreferris enabled auto-merge (squash) August 2, 2023 13:09
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

APKs built during tests are available here. Scroll down to Artifacts!

@@ -158,9 +159,8 @@ fun inlineChildren(
annotatedString.pop()
}

is HardLineBreak -> {
is HardLineBreak, is SoftLineBreak -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

That is a blessing from commonmark. I wasn't expecting it to be so simple!

Nice find.

@AndroidBob
Copy link
Collaborator

Build 838 succeeded.

The build produced the following APK's:

@alexandreferris alexandreferris merged commit 89a3ade into release/candidate Aug 2, 2023
13 checks passed
@alexandreferris alexandreferris deleted the fix/line_break_unhandled_event branch August 2, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants