GetStream / stream-chat-react-native

💬 React-Native Chat SDK ➜ Stream Chat. Includes a tutorial on building your own chat app experience using React-Native, React-Navigation and Stream
https://getstream.io/chat/sdk/react-native/
Other
955 stars 321 forks source link

Double brackets break creating an empty bubble when entering the chat #498

Closed Matti93GL closed 3 years ago

Matti93GL commented 3 years ago

Describe the bug When a message is sent with [][] regardless of the content that is put into it, when it is sent an empty bubble is seen inside the chat

**Dev environment info

To Reproduce Steps to reproduce the behavior:

  1. Enter to the chat
  2. Write a message with [][]
  3. Send the message
  4. See error

Expected behavior the message looks correct

Aditional The original text was copy from Wikipedia, After the successful self-titled album released in 1987, which included one of Chayanne’s signature songs, “Fiesta en América”, a track that peaked at number 4 in the Billboard Hot Latin Tracks chart and also ranked 49th in the 2008 recap for the ’100 Greatest Songs of the 80’s in Spanish’ by VH1 Latin America,[2][3] the singer recorded in 1988 his second self-titled album under the Sony record label. The following year, Chayanne signed a contract with Pepsi to record the first Spanish language commercial aired in the United States on a major TV network without subtitles or dubbing, debuted during the Grammy Awards that year.[4] Chayanne received a Grammy Award nomination for Best Latin Pop Performance, which it lost to José Feliciano’s rendition of “Cielito Lindo”.[4][5] During this year, the singer also won the Lo Nuestro Award for Pop Male Artist and the album was nominated for Pop Album of the Year.[6][7] “Este Ritmo Se Baila Así“, the third single from this release, won the MTV Video Music Award in 1989 as the International Viewer’s Choice.[8] The album was re-released 1989 and then in 2000 with the same track list., after try to reproduce and see what happend we see that the [][] was the problem

Screenshots done

gz#8888

SeniYG commented 3 years ago

Hi,

Thanks for reaching out. Are you using the MessageInput and ChannelList default components?

Best,

Matti93GL commented 3 years ago

Hi @SeniYG yes, we are using the defaults

Matti93GL commented 3 years ago

@SeniYG the issue happend on the stream-chat-react-native expo example too

vishalnarkhede commented 3 years ago

@Matti93GL This has been fixed in v2.1.3