Tdesktop: Typing ":o" doesn't bing the smiley anymore in 1.2.20 alpha

Created on 16 May 2018  路  9Comments  路  Source: telegramdesktop/tdesktop

Steps to reproduce

  1. type ":o " (note the space)
  2. enter

Expected behaviour

Should get an emoji

Actual behaviour

we got the text ":o"

Configuration

Operating system:
Windows
Version of Telegram Desktop:
1.2.20 alpha
Used theme:
custom theme

This is because:
https://github.com/telegramdesktop/tdesktop/blob/4b763a76df514c6f98bc588b66b8df070ec66d85/Telegram/SourceFiles/codegen/emoji/data.cpp#L60

why the need of typing ":ok" without space after ":" ?

after the emoji suggestion panel, I already had to add an extra space to get the correct emoji (I got :o: emoji instead).

Since 1.2.20, I can't type the ":o" emoji at all.

Most helpful comment

@john-preston I think that requiring whitespace makes sense for other replacements too

All 9 comments

@Geobert :ok is a start of an emoji replacement. If you replace :o instantly you can't type :ok if you want :ok: or :ok_hand:

I see, can we have ":o " (with trailing space) as a workaround then? As we had anyway to add the space to avoid :o: witch was automatically selected in the suggestion box

@john-preston Indeed, what about requiring additional whitespace character for non-:: emoji replacements?
The only issue I can see is handling them in the message end.

@stek29 You want only to return :o or to require space in some other replaces as well?

@john-preston I think that requiring whitespace makes sense for other replacements too

Fixed in 1.2.21 alpha! Thanks!

@john-preston Is :o in the end of message not considered as an issue?

@stek29 I don't think it is. You can press space and get the emoji.

I confirm it works at the end of a message :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abhyrz picture abhyrz  路  3Comments

TotalKrill picture TotalKrill  路  3Comments

ArmeF97 picture ArmeF97  路  3Comments

FunctionalHacker picture FunctionalHacker  路  3Comments

qwitriy picture qwitriy  路  3Comments