PrimalHQ / primal-web-app

Primal's web app for Nostr, as experienced on primal.net.
https://primal.net
MIT License
200 stars 39 forks source link

Turning plaintext smileys to emojis breaks writing of notes #28

Closed Samiimov closed 6 months ago

Samiimov commented 1 year ago

Describe the bug

After writing for example ":)" or ":(" and pressing space when writing a note, one cannot create spaces anymore. Noticed that the same error occurs in the messaging page. Also, writing for example ';smiley;' and pressing space results to ';smiley;smiley;' where the latter ;smiley; actually is an emoji. Used ; to demonstrate the problem.

Steps to reproduce

Start writing a new note, write ':)' and press space. After this I'm not able to write more spaces. Press F5 if you can't reproduce. Requires a fresh note writing element.

Expected behavior

After checking console and code I expect the smiley to change to an emoji.

Environment

Additional details

image

moysa commented 6 months ago

Hi, this should be working properly now.