@@ -250,7 +250,7 @@ export interface ConvoState extends ConvoStore {
250250 markThreadAsRead : ( force ?: boolean ) => void
251251 markTeamAsRead : ( teamID : T . Teams . TeamID ) => void
252252 messageAttachmentNativeSave : ( ordinal : T . Chat . Ordinal ) => void
253- messageAttachmentNativeShare : ( ordinal : T . Chat . Ordinal ) => void
253+ messageAttachmentNativeShare : ( ordinal : T . Chat . Ordinal , fromDownload ?: boolean ) => void
254254 messageDelete : ( ordinal : T . Chat . Ordinal ) => void
255255 messageDeleteHistory : ( ) => void
256256 messageReplyPrivately : ( ordinal : T . Chat . Ordinal ) => void
@@ -1851,7 +1851,7 @@ const createSlice: Z.ImmerStateCreator<ConvoState> = (set, get) => {
18511851 }
18521852 ignorePromise ( f ( ) )
18531853 } ,
1854- messageAttachmentNativeShare : ordinal => {
1854+ messageAttachmentNativeShare : ( ordinal , fromDownload = false ) => {
18551855 const message = get ( ) . messageMap . get ( ordinal )
18561856 if ( message ?. type !== 'attachment' ) {
18571857 throw new Error ( 'Invalid share message' )
@@ -1864,7 +1864,8 @@ const createSlice: Z.ImmerStateCreator<ConvoState> = (set, get) => {
18641864 return
18651865 }
18661866
1867- if ( isIOS && message . fileName . endsWith ( '.pdf' ) ) {
1867+ // kinda hacky, on download we need to download and showing
1868+ if ( isIOS && message . fileName . endsWith ( '.pdf' ) && fromDownload ) {
18681869 navigateAppend ( {
18691870 props : {
18701871 conversationIDKey : get ( ) . id ,
0 commit comments