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(
319
319
) ;
320
320
321
321
const [ numUploading , setNumUploading ] = useState < number > ( 0 ) ;
322
- const insertAttachment = useCallback (
322
+ const insertAttachments = useCallback (
323
323
async ( attachments : $ReadOnlyArray < DocumentPickerResponse > ) => {
324
324
setNumUploading ( n => n + 1 ) ;
325
325
try {
@@ -744,7 +744,7 @@ const ComposeBox: React$AbstractComponent<Props, ImperativeHandle> = forwardRef(
744
744
/>
745
745
< ComposeMenu
746
746
destinationNarrow = { destinationNarrow }
747
- insertAttachment = { insertAttachment }
747
+ insertAttachments = { insertAttachments }
748
748
insertVideoCallLink = {
749
749
videoChatProvider !== null ? ( ) => insertVideoCallLink ( videoChatProvider ) : null
750
750
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import type { SpecificIconType } from '../common/Icons';
22
22
23
23
type Props = $ReadOnly < { |
24
24
destinationNarrow : Narrow ,
25
- insertAttachment : ( $ReadOnlyArray < DocumentPickerResponse > ) => Promise < void > ,
25
+ insertAttachments : ( $ReadOnlyArray < DocumentPickerResponse > ) => Promise < void > ,
26
26
insertVideoCallLink : ( ( ) => void ) | null ,
27
27
| } > ;
28
28
@@ -95,7 +95,7 @@ function MenuButton(props: MenuButtonProps) {
95
95
}
96
96
97
97
export default function ComposeMenu ( props : Props ) : Node {
98
- const { destinationNarrow, insertAttachment , insertVideoCallLink } = props ;
98
+ const { destinationNarrow, insertAttachments , insertVideoCallLink } = props ;
99
99
100
100
const dispatch = useDispatch ( ) ;
101
101
const _ = useContext ( TranslationContext ) ;
@@ -221,8 +221,8 @@ export default function ComposeMenu(props: Props): Node {
221
221
return ;
222
222
}
223
223
224
- insertAttachment ( response ) ;
225
- } , [ _ , insertAttachment ] ) ;
224
+ insertAttachments ( response ) ;
225
+ } , [ _ , insertAttachments ] ) ;
226
226
227
227
const styles = useMemo (
228
228
( ) =>
You can’t perform that action at this time.
0 commit comments