@@ -28,7 +28,7 @@ const MobileSendAttachmentToChat = (props: Props) => {
2828  const  incomingShareItems  =  Container . getRouteProps ( props ,  'incomingShareItems' ,  undefined ) 
2929  const  useOriginal  =  Container . getRouteProps ( props ,  'useOriginal' ,  false ) 
3030  const  url  =  Container . getRouteProps ( props ,  'url' ,  undefined ) 
31-   const  path  =  Container . getRouteProps ( props ,  'path' ,  undefined )   ??   Constants . defaultPath 
31+   const  path  =  Container . getRouteProps ( props ,  'path' ,  undefined ) 
3232  const  isFromShareExtension  =  ! ! Container . getRouteProps ( props ,  'incomingShareItems' ,  undefined ) 
3333  const  dispatch  =  Container . useDispatch ( ) 
3434
@@ -37,8 +37,8 @@ const MobileSendAttachmentToChat = (props: Props) => {
3737    // as an attachment. 
3838    ?. filter ( item  =>  ! isChatText ( item ) ) 
3939    ?. map ( ( { originalPath,  scaledPath} )  =>  ( useOriginal  ? originalPath  : scaledPath  ||  originalPath ) ) 
40-   const  pathsFromUrl  =  url  ? [ url ]  : [ ] 
41-   const  pathsFromPath  =  path  ? [ path ]  : [ ] 
40+   const  pathsFromUrl  =  url  ? [ url ]  : undefined 
41+   const  pathsFromPath  =  path  ? [ path ]  : undefined 
4242  const  sendPaths  =  pathsFromIncomingShare  ||  pathsFromUrl  ||  pathsFromPath  ||  [ ] 
4343  const  text  = 
4444    incomingShareItems 
@@ -68,7 +68,6 @@ const MobileSendAttachmentToChat = (props: Props) => {
6868        } ) 
6969      ) 
7070    }  else  { 
71-       dispatch ( RouteTreeGen . createClearModals ( ) ) 
7271      dispatch ( 
7372        Chat2Gen . createNavigateToThread ( { 
7473          conversationIDKey, 
0 commit comments