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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: android picker loop on refuse permission #2130

Merged

Conversation

arthurgeron
Copy link
Contributor

@arthurgeron arthurgeron commented May 31, 2023

Fixes #2129

馃幆 Goal

  • Fix loop on Android

馃洜 Implementation details

  • Avoid having the FlatList call onEndReached on error states, since that would either show the prompt again or enter a loop until the user gives permission.

馃帹 UI Changes

N/A

馃И Testing

Call toggleAttachmentPicker from useMessageInputContext on an Android and either deny permission or click outside the Modal.

鈽戯笍 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

also would happen when dismissing modal
@santhoshvai santhoshvai merged commit 133affc into GetStream:develop Aug 3, 2023
6 of 7 checks passed
@github-actions github-actions bot mentioned this pull request Aug 4, 2023
6 tasks
@stream-ci-bot
Copy link
Contributor

馃帀 This PR is included in version 5.16.0 馃帀

The release is available on:

Your semantic-release bot 馃摝馃殌

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

Successfully merging this pull request may close these issues.

馃敟[馃悰] React Native - Loop when clicking away from Permission Modal
3 participants