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.text = '';
|
||||||
this.selection = { start: 0, end: 0 };
|
this.selection = { start: 0, end: 0 };
|
||||||
this.focused = false;
|
this.focused = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get sendThreadToChannel() {
|
get sendThreadToChannel() {
|
||||||
|
@ -692,7 +691,7 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
|
||||||
takePhoto = async () => {
|
takePhoto = async () => {
|
||||||
logEvent(events.ROOM_BOX_ACTION_PHOTO);
|
logEvent(events.ROOM_BOX_ACTION_PHOTO);
|
||||||
try {
|
try {
|
||||||
const image = await pickImageFromCamera(true);
|
const image = await pickImageFromCamera();
|
||||||
if (image && this.canUploadFile(image)) {
|
if (image && this.canUploadFile(image)) {
|
||||||
this.openShareView([image]);
|
this.openShareView([image]);
|
||||||
}
|
}
|
||||||
|
@ -704,7 +703,7 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
|
||||||
takeVideo = async () => {
|
takeVideo = async () => {
|
||||||
logEvent(events.ROOM_BOX_ACTION_VIDEO);
|
logEvent(events.ROOM_BOX_ACTION_VIDEO);
|
||||||
try {
|
try {
|
||||||
const video = await pickVideoFromCamera(true);
|
const video = await pickVideoFromCamera();
|
||||||
if (video && this.canUploadFile(video)) {
|
if (video && this.canUploadFile(video)) {
|
||||||
this.openShareView([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);
|
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);
|
pickFromCamera(allowsEditing, ImagePicker.MediaTypeOptions.Images);
|
||||||
|
|
Loading…
Reference in New Issue