Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3755462
D3423.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
661 B
Referenced Files
None
Subscribers
None
D3423.diff
View Options
diff --git a/native/chat/image-paste-modal.react.js b/native/chat/image-paste-modal.react.js
--- a/native/chat/image-paste-modal.react.js
+++ b/native/chat/image-paste-modal.react.js
@@ -39,10 +39,6 @@
const selection: $ReadOnlyArray<PhotoPaste> = [imagePasteStagingInfo];
invariant(inputState, 'inputState should be set in ImagePasteModal');
await inputState.sendMultimediaMessage(selection, threadInfo);
- invariant(
- imagePasteStagingInfo,
- 'imagePasteStagingInfo should be set in ImagePasteModal',
- );
}, [imagePasteStagingInfo, inputState, navigation, threadInfo]);
const cancel = React.useCallback(async () => {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 4:45 AM (20 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2859862
Default Alt Text
D3423.diff (661 B)
Attached To
Mode
D3423: [native] Remove unnecessary `invariant` in `ImagePasteModal:sendImage`
Attached
Detach File
Event Timeline
Log In to Comment