Skip to content

Commit 6cbee9f

Browse files
Fixing document picker issue
Related to #110
1 parent a419e7f commit 6cbee9f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ The React Native components are created using the stream-chat-js library. If you
7575
1. Navigation between different component is something we expect consumers to
7676
implement. You can checkout the example given in this repository
7777
78+
2. Minor releases may come with some breaking changes, so always check the release notes before upgrading minor version.
79+
7880
Library currently exposes following components:
7981
8082
1. Avatar

src/components/MessageInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ const MessageInput = withKeyboardContext(
455455
return;
456456

457457
const result = await pickDocument();
458-
if (result.type === 'cancel') {
458+
if (result.type === 'cancel' || result.cancelled) {
459459
return;
460460
}
461461
const mimeType = lookup(result.name);

0 commit comments

Comments
 (0)