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
972 stars 324 forks source link

Error loading messages in this channel #2192

Closed 12varun12 closed 11 months ago

12varun12 commented 1 year ago

Issue

Describe your issue here when we click on any channel and scroll the chats then i am getting "Error loading messages in this channel..."

Steps to reproduce

Steps to reproduce the behavior: 1) click on any channel 2) then click on back button and come to channel list screen 3) then click on different channel and scroll the chat when we start scrolling then we getting "Error loading messages in this channel..." and also chat thread is not getting updated according to the channel

Expected behavior

when we click on any channel then chat thread must be related to that channel and after scrolling the chats we have to seen all the chats intead of "Error loading messages in this channel..." error

Project Related Information

Customization

Click To Expand

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


Offline support


Environment

Click To Expand

#### `package.json`: ``` { "name": "thousandgreens", "version": "0.0.1", "private": true, "reactNativePermissionsIOS": [ "Camera" ], "scripts": { "android": "react-native run-android", "android:clean": "cd android && ./gradlew clean && cd ..", "android:dev": "cp -R 'dev/google-services.json' 'android/app' && ENVFILE=.env.dev react-native run-android", "android:qa": "cp -R 'qa/google-services.json' 'android/app' && ENVFILE=.env.qa react-native run-android", "android:staging": "cp -R 'staging/google-services.json' 'android/app' && ENVFILE=.env.staging react-native run-android", "android:prod": "cp -R 'prod/google-services.json' 'android/app' && ENVFILE=.env.prod react-native run-android", "ios": "react-native run-ios --simulator='iPhone 13'", "ios:dev": "react-native run-ios --scheme 'thousandgreens-dev'", "ios:staging": "react-native run-ios --scheme 'thousandgreens-staging'", "ios:prod": "react-native run-ios --scheme 'thousandgreens'", "ios-8": "react-native run-ios --simulator='iPhone 8'", "build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'", "start": "react-native start", "test": "jest", "lint": "eslint .", "postinstall": "patch-package && react-native setup-ios-permissions && pod-install", "stagningEnv": "APP_ENV=staging", "apk:dev": "cp -R 'dev/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.dev ./gradlew assembleRelease && cd ..", "apk:staging": "cp -R 'staging/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.staging ./gradlew assembleRelease && cd ..", "apk:prod": "cp -R 'prod/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.prod ./gradlew assembleRelease && cd ..", "app:dev": "cp -R 'dev/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.dev ./gradlew bundleRelease && cd ..", "app:staging": "cp -R 'staging/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.staging ./gradlew bundleRelease && cd ..", "app:prod": "cp -R 'prod/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.prod ./gradlew bundleRelease && cd .." }, "dependencies": { "@apollo/client": "3.7.15", "@fawazahmed/react-native-read-more": "3.0.2", "@react-native-async-storage/async-storage": "1.17.11", "@react-native-camera-roll/camera-roll": "5.2.4", "@react-native-community/blur": "4.3.0", "@react-native-community/checkbox": "0.5.14", "@react-native-community/clipboard": "1.5.1", "@react-native-community/geolocation": "2.0.2", "@react-native-community/masked-view": "0.1.11", "@react-native-community/netinfo": "9.3.7", "@react-native-community/picker": "1.8.1", "@react-native-community/push-notification-ios": "1.10.1", "@react-native-firebase/analytics": "17.5.0", "@react-native-firebase/app": "17.5.0", "@react-native-firebase/auth": "17.5.0", "@react-native-firebase/crashlytics": "17.5.0", "@react-native-firebase/dynamic-links": "17.5.0", "@react-native-firebase/messaging": "17.5.0", "@react-native-firebase/storage": "17.5.0", "@react-navigation/bottom-tabs": "6.0.5", "@react-navigation/native": "5.7.3", "@react-navigation/stack": "5.9.0", "@rnmapbox/maps": "10.0.0-beta.70", "@stream-io/flat-list-mvcp": "0.10.2", "apollo": "2.34.0", "apollo-cache-inmemory": "1.6.6", "apollo-client": "2.6.10", "apollo-link": "1.2.14", "apollo-link-http": "1.5.5", "apollo-link-ws": "1.0.20", "apollo-utilities": "1.3.4", "axios": "0.21.1", "babel-plugin-transform-remove-console": "6.9.4", "dns": "file:./mock/dns", "graphql": "15.3.0", "graphql-request": "3.7.0", "graphql-ws": "4.1.1", "install": "0.13.0", "jetifier": "2.0.0", "localstorage-polyfill": "1.0.1", "moment": "2.29.4", "patch-package": "6.5.1", "react": "18.2.0", "react-apollo": "3.1.5", "react-native": "0.70.3", "react-native-background-timer": "2.4.1", "react-native-calendars": "1.1293.0", "react-native-config": "1.5.0", "react-native-country-picker-modal": "2.0.0", "react-native-device-info": "10.4.0", "react-native-document-picker": "8.1.3", "react-native-elements": "3.4.3", "react-native-fast-image": "8.6.3", "react-native-fs": "2.20.0", "react-native-geolocation-service": "5.2.0", "react-native-gesture-handler": "2.8.0", "react-native-google-places-autocomplete": "2.5.1", "react-native-haptic-feedback": "1.14.0", "react-native-html-to-pdf": "0.12.0", "react-native-htmlview": "0.16.0", "react-native-image-auto-height": "1.0.4", "react-native-image-crop-picker": "0.39.0", "react-native-image-picker": "5.1.0", "react-native-image-resizer": "1.4.5", "react-native-intl-phone-input": "1.2.27", "react-native-keyboard-aware-scroll-view": "0.9.5", "react-native-linear-gradient": "2.6.2", "react-native-onesignal": "4.5.0", "react-native-otp-textinput": "1.0.0", "react-native-permissions": "3.8.0", "react-native-phone-input": "1.3.5", "react-native-phone-number-input": "2.1.0", "react-native-picker-select": "8.0.4", "react-native-push-notification": "8.1.1", "react-native-raw-bottom-sheet": "2.2.0", "react-native-reanimated": "2.14.4", "react-native-safe-area-context": "4.5.0", "react-native-screens": "2.10.1", "react-native-share": "8.2.0", "react-native-snap-carousel": "3.9.1", "react-native-svg": "13.8.0", "react-native-swiper": "1.6.0", "react-native-vector-icons": "9.2.0", "react-native-video": "5.2.1", "react-native-walkthrough-tooltip": "1.5.0", "rn-actionsheet-module": "1.0.4", "rn-fetch-blob": "0.12.0", "sendbird": "3.1.32", "stream-chat-react-native": "5.10.0", "subscriptions-transport-ws": "0.9.18", "swr": "0.3.1", "yup": "0.29.3" }, "devDependencies": { "@babel/core": "7.16.5", "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6", "@babel/plugin-proposal-optional-chaining": "7.21.0", "@babel/plugin-transform-arrow-functions": "7.20.7", "@babel/plugin-transform-shorthand-properties": "7.18.6", "@babel/plugin-transform-template-literals": "7.18.9", "@babel/preset-flow": "7.16.5", "@babel/runtime": "7.16.5", "@react-native-community/eslint-config": "3.2.0", "babel-jest": "29.4.3", "jest": "29.4.3", "metro-react-native-babel-preset": "0.75.1", "pod-install": "0.1.38", "react-native-svg-transformer": "1.0.0", "react-test-renderer": "18.2.0" }, "jest": { "preset": "react-native" } } ``` **`react-native info` output:** ``` "react-native": "0.70.3", "stream-chat-react-native": "5.10.0", ``` - **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

https://github.com/GetStream/stream-chat-react-native/assets/96221152/30b27214-4785-4d69-9047-0a74dd868641

khushal87 commented 1 year ago

Hello, Is it still relevant?

12varun12 commented 1 year ago

Yes, we still facing this issue

On Tue, Aug 29, 2023, 12:09 PM Khushal Agarwal @.***> wrote:

Hello, Is it still relevant?

— Reply to this email directly, view it on GitHub https://github.com/GetStream/stream-chat-react-native/issues/2192#issuecomment-1696856133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW6DPYHZ7PIMGGOKHG6FCILXXWFBLANCNFSM6AAAAAA2Q6LLXY . You are receiving this because you authored the thread.Message ID: @.***>

khushal87 commented 1 year ago

Do you have any added customization?

12varun12 commented 1 year ago

Yes

On Tue, Aug 29, 2023, 12:33 PM Khushal Agarwal @.***> wrote:

Do you have any added customization?

— Reply to this email directly, view it on GitHub https://github.com/GetStream/stream-chat-react-native/issues/2192#issuecomment-1696882407, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW6DPYCD6TY2BA56OPYX2MLXXWH2VANCNFSM6AAAAAA2Q6LLXY . You are receiving this because you authored the thread.Message ID: @.***>

vishalnarkhede commented 1 year ago

@12varun12 please review the markdown when you create an issue. It makes it easier for reviewers to look into the issue.

vishalnarkhede commented 1 year ago

Also there is not enough information provided here for us to reproduce the issue.

santhoshvai commented 11 months ago

I am closing this issue due to inactivity. Feel free to reopen if it's still relevant.