hihain / UnigramMobile

A Telegram Messenger client made for Windows 10 Mobile.
https://www.microsoft.com/store/apps/9NSD4T15QLFX
GNU General Public License v3.0
46 stars 6 forks source link

Cannot Copy & Paste Messages containing invisible Links #8

Closed samij263 closed 4 years ago

samij263 commented 4 years ago

reproduction steps are done in video. Untitled-1

hihain commented 4 years ago

@samij263 Can you still reproduce it using the latest beta?

samij263 commented 4 years ago

@samij263 Can you still reproduce it using the latest beta?

I still face crash in version 20.6.52.39

hihain commented 4 years ago

@samij263: Can you still reproduce this? The video seems to suggest that the attached media is not downloaded. Is that correct? If you still have the problem, can you forward the message to me on Telegram? Thanks!

hihain commented 4 years ago

Reported: UnigramDev#1931

That is the content of the range for the link: image

But actually, any "invisible" Unicode crashes, like "\t" etc.

UWP tries to replace the range.Text with something HYPERLINK "https://telegra.ph/file/.....jpg"LINKTEXT

hihain commented 4 years ago

On Edit the invisible link gets replaced by a dot now. @samij263 Have not found a better solution, yet. Use the bot for editing without losing information. At least it does not crash anymore. ;)

samij263 commented 4 years ago

Thanks!