Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Feb 18, 2025
1 parent 5408315 commit f96915e
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 71 deletions.
1 change: 0 additions & 1 deletion app/containers/MessageComposer/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// import { Options } from 'react-native-image-crop-picker';
import { ImagePickerOptions, MediaTypeOptions } from 'expo-image-picker';

import { TMarkdownStyle } from './interfaces';
Expand Down
3 changes: 1 addition & 2 deletions app/containers/MessageComposer/hooks/useChooseMedia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ import { IShareAttachment } from '../../../definitions';

const mapMediaResult = (assets: ImagePickerAsset[]): IShareAttachment[] =>
assets.map(asset => ({
filename: asset.fileName || 'temp',
filename: asset.fileName || `${new Date().getTime().toString()}.jpg`,
size: asset.fileSize || 0,
mime: asset.mimeType,
path: asset.uri,
uri: asset.uri,
width: asset.width,
height: asset.height,
exif: {
Expand Down
1 change: 0 additions & 1 deletion app/definitions/IAttachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export interface IShareAttachment {
path: string;
canUpload?: boolean;
error?: any;
uri: string;
width?: number;
height?: number;
exif?: {
Expand Down
1 change: 0 additions & 1 deletion app/lib/methods/helpers/ImagePicker/ImagePicker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// import ImagePicker, { Image as ImageInterface, ImageOrVideo as ImageOrVideoType } from 'react-native-image-crop-picker';
import * as ImagePicker from 'expo-image-picker';

export default ImagePicker;
1 change: 0 additions & 1 deletion app/lib/methods/sendFileMessage/sendFileMessageV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export async function sendFileMessageV2(
user: Partial<Pick<IUser, 'id' | 'token'>>,
isForceTryAgain?: boolean
): Promise<void> {
console.log('🚀 ~ fileInfo:', fileInfo);
let uploadPath: string | null = '';
let uploadRecord: TUploadModel | null;
try {
Expand Down
61 changes: 0 additions & 61 deletions app/views/ChangeAvatarView/ImagePicker.mock.ts

This file was deleted.

4 changes: 0 additions & 4 deletions app/views/ChangeAvatarView/ImagePicker.ts

This file was deleted.

0 comments on commit f96915e

Please sign in to comment.