stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

feat: use queryReactions to fetch and show reactions in OverlayReactions.

Open khushal87 opened this issue 1 year ago โ€ข 0 comments

๐ŸŽฏ Goal

This PR focuses on using the client.queryReactions API to show reactions in the OverlayReactions instead of what was used before(message.latest_reactions). Optimistic fetching of reactions from local DB is present and is also handled in the PR.

Note: The reactions type could have been ReactionsResponse and that would make the code much cleaner but sadly that would be a breaking change so the response from the API is mapped to the existing Reaction type.

Also, this PR is to be reviewed and merged once #2523 is merged.

๐Ÿ›  Implementation details

๐ŸŽจ UI Changes

iOS
Before After
Android
Before After

๐Ÿงช Testing

โ˜‘๏ธ Checklist

  • [ ] I have signed the Stream CLA (required)
  • [ ] PR targets the develop branch
  • [ ] Documentation is updated
  • [ ] New code is tested in main example apps, including all possible scenarios
    • [ ] SampleApp iOS and Android
    • [ ] Expo iOS and Android

khushal87 avatar May 29 '24 13:05 khushal87