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
975 stars 325 forks source link

[🐛] TypeError: Cannot read property 'skin_variations' of undefined on AutoCompleteSuggestionList #2373

Closed VNDRN closed 9 months ago

VNDRN commented 10 months ago

Issue

When typing :msi instead of :smi , a warning is triggered in the AutoCompleteSuggestionList component:

TypeError: Cannot read property 'skin_variations' of undefined

Steps to reproduce

Steps to reproduce the behavior:

  1. Have a MessageInput with the default AutoCompleteSuggestionList
  2. type :msi, which does not find an emoji.
  3. the warning TypeError: Cannot read property 'skin_variations' of undefined comes up

Expected behavior

No warning is returned, it should just not find any emojis

Project Related Information

Customization

Click To Expand

```typescript jsx # N/A ```

Offline support

Environment

Click To Expand

#### `package.json`: ```json # N/A ``` **`react-native info` output:** ``` OUTPUT GOES HERE ``` - **Platform that you're experiencing the issue on**: - [ ] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **`stream-chat-react-native` version you're using that has this issue:** - `e.g. 5.4.3` - Device/Emulator info: - [ ] I am using a physical device - OS version: `e.g. Android 10` - Device/Emulator: `e.g. iPhone 11`

Additional context

Screenshots

Click To Expand

![simulator_screenshot_239BCD36-AA9C-4F36-85F3-32431B5F2AFC](https://github.com/GetStream/stream-chat-react-native/assets/60874935/48d5e5f7-de3c-47e4-80e0-4f644fffe5ac)


stream-ci-bot commented 9 months ago

:tada: This issue has been resolved in version 5.23.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: