Skip to content

Restrict all external file sharing into Privitty (Share Sheet, Files app, and Paste) #61

@girishjadhav-cosmica

Description

@girishjadhav-cosmica

Description

We need to ensure that no files from outside the app can be shared into Privitty. The app should not appear as a destination for file sharing from other apps, and users should not be able to bring files into the app through paste actions.

However, text paste should still be allowed.

Requirements

1. Remove Privitty from external share targets

Privity should not appear in the iOS Share Sheet or "Open in…" options when sharing files from other apps.

2. Disable Files app / external document access

Prevent Privitty from appearing as a file destination in the Files app or external document flows.


3. Block file/image paste from clipboard

Users should not be able to paste files or images into the app from the clipboard.

However:

  • Text paste must remain allowed.

Implementation
Override paste handling in the chat input views.

This ensures:

  • Text paste works normally
  • Image/file clipboard content is ignored.

Expected Result

Users cannot import files into Privitty from outside the app via:

  • iOS Share Sheet
  • "Open in…" from other apps
  • Files app
  • Clipboard paste (images/files)

Users can still paste text into the chat input.


Testing Checklist

  • Privitty does not appear in iOS Share Sheet
  • Files app cannot open files in Privitty
  • Copy/paste of images from Photos or other apps is blocked
  • Copy/paste of files from other apps is blocked
  • Text paste continues to work normally
  • Internal file sending inside the app still works

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions