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

When Cancelling add attachment app crashes #110

Closed
JJ-Kidd opened this issue Jan 6, 2020 · 5 comments
Closed

When Cancelling add attachment app crashes #110

JJ-Kidd opened this issue Jan 6, 2020 · 5 comments
Assignees
Labels
Bug Something isn't working in the SDK

Comments

@JJ-Kidd
Copy link
Contributor

JJ-Kidd commented Jan 6, 2020

Describe the bug
Application throws an unhandled error due to a rejected promise.
When a user clicks to add an attachment, then clicks 'Upload a file', then 'Cancel' I receive "mimeType.startsWith is not a function".
The error is surfaced from stream-chat-react-native-core.

Dev environment info (please complete/provide the following information):

  • stream-chat-react-native-core: v0.5.1
  • react-native
  • Simulator: iPhone 8 and iPhone 11

To Reproduce
Steps to reproduce the behavior:

  1. Open a chat
  2. Select to add an attachment
  3. Select "Upload a file"
  4. Click "Cancel" in top right corner

Expected behavior
A user should be returned to the chat and handle the error correctly

Screenshots
Screenshot 2020-01-06 at 11 58 57

@JJ-Kidd JJ-Kidd added the Bug Something isn't working in the SDK label Jan 6, 2020
@vishalnarkhede
Copy link
Contributor

Thanks for reporting ti @JJ-Kidd . We will look into it and fix it asap!!

@vishalnarkhede
Copy link
Contributor

We will publish a fix for this tomorrow :)

@vishalnarkhede
Copy link
Contributor

Hey @JJ-Kidd fixed -v0.6.0

Please confirm if it works for you!!

@lokewk
Copy link

lokewk commented Oct 13, 2020

Screenshot 2020-10-13 at 2 46 49 PM

@vishalnarkhede I am facing the same issue, when a user clicks to add an attachment, then clicks 'Upload a file', then 'Cancel'. User will have the above message.

@lokewk
Copy link

lokewk commented Oct 28, 2020

@vishalnarkhede any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working in the SDK
Projects
None yet
Development

No branches or pull requests

3 participants