remove default param
This commit is contained in:
parent
553237caaf
commit
f537920626
|
@ -163,7 +163,6 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
|
|||
this.text = '';
|
||||
this.selection = { start: 0, end: 0 };
|
||||
this.focused = false;
|
||||
|
||||
}
|
||||
|
||||
get sendThreadToChannel() {
|
||||
|
@ -692,7 +691,7 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
|
|||
takePhoto = async () => {
|
||||
logEvent(events.ROOM_BOX_ACTION_PHOTO);
|
||||
try {
|
||||
const image = await pickImageFromCamera(true);
|
||||
const image = await pickImageFromCamera();
|
||||
if (image && this.canUploadFile(image)) {
|
||||
this.openShareView([image]);
|
||||
}
|
||||
|
@ -704,7 +703,7 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
|
|||
takeVideo = async () => {
|
||||
logEvent(events.ROOM_BOX_ACTION_VIDEO);
|
||||
try {
|
||||
const video = await pickVideoFromCamera(true);
|
||||
const video = await pickVideoFromCamera();
|
||||
if (video && this.canUploadFile(video)) {
|
||||
this.openShareView([video]);
|
||||
}
|
||||
|
|
|
@ -111,8 +111,8 @@ export async function pickImageFromLibrary({ animatedGif = true }: { animatedGif
|
|||
}
|
||||
}
|
||||
|
||||
export const pickVideoFromCamera = (allowsEditing = false): Promise<ImagePickerFile | null> =>
|
||||
export const pickVideoFromCamera = (allowsEditing = true): Promise<ImagePickerFile | null> =>
|
||||
pickFromCamera(allowsEditing, ImagePicker.MediaTypeOptions.Videos);
|
||||
|
||||
export const pickImageFromCamera = (allowsEditing = false): Promise<ImagePickerFile | null> =>
|
||||
export const pickImageFromCamera = (allowsEditing = true): Promise<ImagePickerFile | null> =>
|
||||
pickFromCamera(allowsEditing, ImagePicker.MediaTypeOptions.Images);
|
||||
|
|
Loading…
Reference in New Issue