status-im / status-desktop

Status Desktop client made in Nim & QML
https://status.app
Mozilla Public License 2.0
288 stars 78 forks source link

User can receive messages, but cannot send anything except emoji reactions because of emoji ENS name #15284

Closed jrainville closed 2 months ago

jrainville commented 3 months ago

Bug Report

Description

One of our users has a very weird issue.

They can receive messages correctly. They can send messages, but even though it shows for them, no one else receives them in the app. Emoji reactions seem to work perfectly though.

It turns out that the problem is the display name validation (ValidateDisplayName on status-go).

Since their ENS name contains emojis, it gets validated out on the received side, so none of their messages get received.

I debugged with them, and even though they changed their display name to be a normal ENS name without emojis, the received displayName is still the one with emojis.

As far as I know, everything was fine in 2.28 and only in 2.29 did the issue start to appear.

Steps to reproduce

  1. Have an ENS name with emojis in it
  2. Send a message in a channel
  3. See you own message sent
  4. Check with an other account No message is received

The opposite works however. The emoji ENS name can receive correctly

Expected behavior

Emoji ENS name account can send and receive messages correctly

Actual behavior

Failure to be recieved

Additional Information

churik commented 3 months ago

leaving message here to know when to recheck it on mobile

Context: https://discord.com/channels/1210237582470807632/1217173160416382986/1257710990313656341