Skip to content

sharing cleanup#29366

Open
chrisnojima wants to merge 4 commits into
nojima/HOTPOT-startup-flowfrom
nojima/HOTPOT-sharing-cleanup
Open

sharing cleanup#29366
chrisnojima wants to merge 4 commits into
nojima/HOTPOT-startup-flowfrom
nojima/HOTPOT-sharing-cleanup

Conversation

@chrisnojima

Copy link
Copy Markdown
Contributor

No description provided.

The linking rewrite dropped the convID segment of
keybase://incoming-share/<convID>, so picking a donated conversation
in the iOS share sheet fell back to the generic picker. Pass it as
selectedConversationIDKey again (was in constants/deeplinks, see
02c5535).
- share one IncomingShareHeaderTitle between routes and screen
- remove originalOnly store-sync effect from OriginalOrCompressedButton;
  both mount sites already skip mounting it when originalOnly
- clear consumed androidShare on unmount so getInitialURL can't
  resurface a stale share later in the session
- misc: footer returns JSX, merged prop types, ignorePromise, dead
  capitalize param
- collapse onCreate/onNewIntent duplication into captureIntent
- drop normalizeShareIntent and handleIntent's re-extract fallbacks:
  pendingShare* is always populated for SEND intents and only consumed
  once, so the fallbacks were unreachable
- copy shared files on a background thread; content-provider reads of
  large files were blocking the main thread (ANR risk)
- remove didSomething and the notification bundle clone dance
png/gif/jpeg/heic shares went through the plain file path with no
scaledPath, so the full-size/compress choice never appeared for most
photo shares; only coerced images and videos were scaled. Route them
through sendMedia -> MediaUtils.processImage like videos. If scaling
fails (odd/corrupt format) fall back to a plain file entry instead of
erroring the share. Compressing a GIF yields a static jpg; keeping
full size preserves the original.

Also collapse the duplicated processVideo/processImage completion and
delete unused closeProgressView.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant