File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ const ComposeBox: React$AbstractComponent<Props, ImperativeHandle> = forwardRef(
319319 ) ;
320320
321321 const [ numUploading , setNumUploading ] = useState < number > ( 0 ) ;
322- const insertAttachment = useCallback (
322+ const insertAttachments = useCallback (
323323 async ( attachments : $ReadOnlyArray < DocumentPickerResponse > ) => {
324324 setNumUploading ( n => n + 1 ) ;
325325 try {
@@ -744,7 +744,7 @@ const ComposeBox: React$AbstractComponent<Props, ImperativeHandle> = forwardRef(
744744 />
745745 < ComposeMenu
746746 destinationNarrow = { destinationNarrow }
747- insertAttachment = { insertAttachment }
747+ insertAttachments = { insertAttachments }
748748 insertVideoCallLink = {
749749 videoChatProvider !== null ? ( ) => insertVideoCallLink ( videoChatProvider ) : null
750750 }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import type { SpecificIconType } from '../common/Icons';
2222
2323type Props = $ReadOnly < { |
2424 destinationNarrow : Narrow ,
25- insertAttachment : ( $ReadOnlyArray < DocumentPickerResponse > ) => Promise < void > ,
25+ insertAttachments : ( $ReadOnlyArray < DocumentPickerResponse > ) => Promise < void > ,
2626 insertVideoCallLink : ( ( ) => void ) | null ,
2727| } > ;
2828
@@ -95,7 +95,7 @@ function MenuButton(props: MenuButtonProps) {
9595}
9696
9797export default function ComposeMenu ( props : Props ) : Node {
98- const { destinationNarrow, insertAttachment , insertVideoCallLink } = props ;
98+ const { destinationNarrow, insertAttachments , insertVideoCallLink } = props ;
9999
100100 const dispatch = useDispatch ( ) ;
101101 const _ = useContext ( TranslationContext ) ;
@@ -221,8 +221,8 @@ export default function ComposeMenu(props: Props): Node {
221221 return ;
222222 }
223223
224- insertAttachment ( response ) ;
225- } , [ _ , insertAttachment ] ) ;
224+ insertAttachments ( response ) ;
225+ } , [ _ , insertAttachments ] ) ;
226226
227227 const styles = useMemo (
228228 ( ) =>
You can’t perform that action at this time.
0 commit comments