Conversation
…ccess, and file paste) #61 - Disable Share Extension activation so the app does not appear in the iOS Share Sheet - Disable external document access via Files app (UIFileSharingEnabled=false, LSSupportsOpeningDocumentsInPlace=false) - Block image/file paste from clipboard in chat input - Allow text paste to continue working normally Tests: - Verify app does not appear in iOS Share Sheet - Verify Files app cannot open files in the app - Verify image/file paste from clipboard is blocked - Verify text paste continues to work This ensures files cannot be imported into the app from outside sources.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The app will no longer appear as a target in the iOS Share Sheet, Files app, or "Open in…" flows. Additionally, pasting images or file content from the clipboard into the chat input is blocked. Text paste remains allowed.
Changes
Disable Share Sheet sharing
Disable Files app access
Restrict clipboard paste
Updated chat input views to restrict clipboard behavior:
Implementation checks the clipboard content and ignores paste actions when image/file data is present.
Testing
Manual testing performed:
Expected Behavior
Users cannot import files into the app from outside sources via:
Users can still: