Skip to content

Commit

Permalink
Make IShareAttachment.canUpload optional
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Feb 18, 2025
1 parent 3445d68 commit 5408315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/containers/MessageComposer/hooks/useChooseMedia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const mapMediaResult = (assets: ImagePickerAsset[]): IShareAttachment[] =>
height: asset.height,
exif: {
Orientation: asset.exif?.Orientation
},
canUpload: true
}
}));

export const useChooseMedia = ({
Expand Down
2 changes: 1 addition & 1 deletion app/definitions/IAttachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface IShareAttachment {
size: number;
mime?: string;
path: string;
canUpload: boolean;
canUpload?: boolean;
error?: any;
uri: string;
width?: number;
Expand Down

0 comments on commit 5408315

Please sign in to comment.