Skip to content

Instantly share code, notes, and snippets.

@Ashoat
Created February 14, 2023 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ashoat/a7e7482aa9efe9f365c27d585de535b4 to your computer and use it in GitHub Desktop.
Save Ashoat/a7e7482aa9efe9f365c27d585de535b4 to your computer and use it in GitHub Desktop.
diff --git a/lib/types/media-types.js b/lib/types/media-types.js
index 83bf6f655..bf4161260 100644
--- a/lib/types/media-types.js
+++ b/lib/types/media-types.js
@@ -50,12 +50,10 @@ export type Corners = Shape<{
export type MediaInfo =
| {
...Image,
- +corners: Corners,
+index: number,
}
| {
...Video,
- +corners: Corners,
+index: number,
};
diff --git a/native/chat/inner-multimedia-message.react.js b/native/chat/inner-multimedia-message.react.js
index 2661d8818..7af250fbe 100644
--- a/native/chat/inner-multimedia-message.react.js
+++ b/native/chat/inner-multimedia-message.react.js
@@ -119,7 +119,6 @@ class InnerMultimediaMessage extends React.PureComponent<Props> {
const { pendingUploads } = this.props.item;
const mediaInfo = {
...media,
- corners: filteredCorners,
index,
};
const pendingUpload = pendingUploads && pendingUploads[media.id];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment