Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting all historical message of conversation #28

Open
6 of 29 tasks
ahmedShaheer3 opened this issue May 26, 2023 · 2 comments
Open
6 of 29 tasks

Not getting all historical message of conversation #28

ahmedShaheer3 opened this issue May 26, 2023 · 2 comments

Comments

@ahmedShaheer3
Copy link

Description

hey there thanks advance for you time and help. i calling fetchHistoryMessages() but not getting all historical message specially the new one's also i have getLatestMessage() its working fine and showing me the latest message but when i call fetchHistoryMessages() i am not getting all the history message following i my code

let paginationLimit = 45
let lastEvaluatedKey = ''
let convType = 0;
// getting messages from server
const conversation = await chatManager.fetchHistoryMessages(
convId,
convType,
paginationLimit,
lastEvaluatedKey,
);
console.log('RESPONSE[RETRIVE_CONVERSATION_MESSAGE]', conversation);

Note: just for testing i again switch back to version 1.1.1 its working fine i am getting all message currenlty i am using 1.1.2beta-4

Version

1.1.2beta-4

Output of npx react-native info

System:
OS: macOS 13.0.1
CPU: (8) arm64 Apple M1
Memory: 99.14 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.9.0 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.19.1 - /opt/homebrew/bin/npm
Watchman: 2022.09.05.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.16.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.6 => 0.70.6
react-native-macos: Not Found
npmGlobalPackages:

Steps to reproduce

npx react-native run-android

yarn instal react-native-agora-chat

  // getting messages from server
  const conversation = await chatManager.fetchHistoryMessages(
    convId,
    convType,
    paginationLimit,
    lastEvaluatedKey,
  );

Snack, code example, screenshot, or link to a repository

https://github.com/

Platform

  • All
  • Android
  • iOS

SimulatorOrDevice

  • All
  • Simulator
  • Device

iOSVersion

  • All
  • iOS Earlier than 8
  • iOS 8
  • iOS 9
  • iOS 10
  • iOS 11
  • iOS 12
  • iOS 13
  • iOS 14
  • iOS 15
  • iOS 16 or above
  • Android Earlier than API Level 23
  • Android API Level 23
  • Android API Level 24
  • Android API Level 25
  • Android API Level 26
  • Android API Level 27
  • Android API Level 28
  • Android API Level 29
  • Android API Level 30
  • Android API Level 31
  • Android API Level 32
  • Android API Level 33 or above
@ahmedShaheer3
Copy link
Author

hey there i am still facing this issue in 1.1.2-beta-5

@AsteriskZuo
Copy link
Collaborator

The fetchHistoryMessages interface mainly added the direction parameter between version 1.1.1 and version 1.1.2. If you switch versions, ios recommends cleaning the cache. Problems can be checked by comparison. For example: start xcode or android studio, check the input parameters in debug mode, and compare the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants