telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.02k stars 5.17k forks source link

File performer and title aren't shown #28467

Open zelark opened 1 week ago

zelark commented 1 week ago

Steps to reproduce

I've already uploaded a file via tg bot api. Its file_id is CQACAgIAAxkDAAIT92b2YSn8R5fUAWHBCx_TSBTTLAQ4AAJWSwACbl2xSzuiZLEVXOa5NQQ.

Full info about the file:

{:duration 1688,
 :file_id "CQACAgIAAxkDAAIT92b2YSn8R5fUAWHBCx_TSBTTLAQ4AAJWSwACbl2xSzuiZLEVXOa5NQQ",
 :file_name "softy_The_Day_I_Passed_lofi_hip_hop_relaxing_beats_pzxY5.m4a",
 :file_size 27292654,
 :file_unique_id "AgADVksAAm5dsUs",
 :mime_type "audio/mp4",
 :performer "Lofi Girl - Chill Beats",
 :title "softy - The Day I Passed ☕️ [lofi hip hop/relaxing beats]"}

So you can resend it by file_id to reproduce the bug.

Expected behaviour

File performer and title are shown as it is in the latest iOS client (my current version 11.1.1). A screenshot from it image

Actual behaviour

File performer and title aren't shown

Screenshot 2024-09-27 at 10 40 37

Operating system

macOS Catalina v.10.15.7

Version of Telegram Desktop

5.5.5

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

zelark commented 1 week ago

I guess a cause is an emoji in the name, but meantime it is perfectly shown in the caption

image
zelark commented 1 week ago

Meanwhile in the web.telegram.org it looks ok for me

image

I tried to change font in TG Desktop, but it didn't helped.

zelark commented 1 week ago

In native Telegram client for macOS everything is fine

image image
john-preston commented 4 days ago

Yeah, strangely macos qt has a problem with showing some texts with emoji, if not done through my custom text rendering. I'm not using it for file filenames because it doesn't support eliding long strings with ellipsis "..." in the middle of the string (instead of the end), and that's what I want for filenames. It should be supported at some point, but I don't have a ETA :(

zelark commented 1 day ago

Thanks. Checked that on Sonomna 14.3.1 there is the same problem.