TelegramMessenger / Telegram-iOS

Telegram-iOS
5.94k stars 1.58k forks source link

Inappropriate strikethrough view in buttons #293

Open sanberuzadre opened 4 years ago

sanberuzadre commented 4 years ago

Checklist

Description

I have a menu with buttons, which can be strikethrough or usual Before update to Telegram 6.1.2, it was looked as usual -> strikethrough worked correctly, After update -> I understood that localization of these strikethrough numbers was changed and it isn't working appropriately. As we know, buttons are not maintaining strikethrough text directly via "\<s>\<\/s>", so I've used Unicode characters to make them as they should be: Unicode Character 'COMBINING LONG STROKE OVERLAY' (U+0336) 0 -> "\u03360\u0336"; 1 -> "\u03361\u0336"; 2 -> "\u03362\u0336"; 3 -> "\u03363\u0336"; 4 -> "\u03364\u0336"; 5 -> "\u03365\u0336"; ... etc.

But now it works inappropriately, bot outputs: 0.

Expected Behavior

Strikethrough workes correctly,

Actual Behavior

Output of strikethrough changed to: 0.

Screenshots and Videos

image image

Environment

Device: iPhone/iPad X

iOS version: 13.X

App version: 6.1.2

ihor-zinchenko commented 4 years ago

same for me

Heizenergy commented 4 years ago

Same