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

How to hide old quick replies? #2502

Open
bradydowling opened this issue Jun 8, 2024 · 1 comment
Open

How to hide old quick replies? #2502

bradydowling opened this issue Jun 8, 2024 · 1 comment

Comments

@bradydowling
Copy link

Issue Description

Is there any built-in way to hide quick replies for old messages? I had whipped up some kind of custom way and now that's causing issues for me so I wanted to check if there's an existing solution for this.

Steps to Reproduce / Code Snippets

N/A

Expected Results

N/A

Additional Information

  • Nodejs version: [FILL THIS OUT]
  • React version: [FILL THIS OUT]
  • React Native version: [FILL THIS OUT]
  • react-native-gifted-chat version: [FILL THIS OUT]
  • Platform(s) (iOS, Android, or both?): [FILL THIS OUT]
  • TypeScript version: [FILL THIS OUT]
@bradydowling bradydowling changed the title Hide old quick replies How to hide old quick replies? Jun 8, 2024
@fukemy
Copy link

fukemy commented Jun 10, 2024

you can pre-calculate the datasource, assume the quick replies were choosen(such as answer: A). So you can change this data to what you want. for example:

  1. Add the label to mark is as custom view, which display some view a result of choosen.
  2. If you just want to hide it, check the quick replies content, if content answer property, then directly remove quickreplies property to mark it's as normal message.

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

No branches or pull requests

2 participants