Incorrect parsing of markdown links when visible text is blank

(#1744) Bug Fixed markdown mobile

Observed behaviour

An invisible message is sent. Note: this also occurs if there are spaces only in the brackets e.g. [ ](https://fluxer.app)

Reproduction steps

  1. Send this message: [](https://fluxer.app) or any other url in its place

Build information

Beta 60, Version 1.0.0, Android 16 (arm64), Device Google Pixel 9a, Locale en-US, Push fcm, Flutter 3.44.2, Dart 3.12.2

Platform

Android

Details

Expected behaviour This and other blank-character markdown messages should behave like the canary client, where these should not hyperlink at all.
  • image.png

    image.png

    356×258 | 26 kB

  • image.png

    image.png

    1080×959 | 91 kB

  1. Rex changed the status from Needs triage to Fixed

1 comment

Sign in with Fluxer to comment and vote.
Comment by mesub
mesubMod 1 vote
Can reproduce CR: Canary 2065, Version 1.0.0-canary, Android 15 (arm64), Device OnePlus CPH2465, Locale en-GB, Push fcm, Flutter 3.44.2, Dart 3.12.2