paulgessinger / swift-paperless

Native iOS app for interacting with a Paperless-ngx installation to manage documents
https://swift-paperless.gessinger.dev/
MIT License
372 stars 15 forks source link

Support Trash bin #118

Open xcojonny opened 5 months ago

xcojonny commented 5 months ago

Hej there,

I just realized, that paperless has a trash bin yeah. https://docs.paperless-ngx.com/usage/#document-trash

What I've figured out is when you delete a document via this ios app (via swiping), then the document is completely deleted and it is not listed in the trash bin.

Would be great if the documents are moved into the trash bin.

cheers.

paulgessinger commented 5 months ago

Hey @xcojonny that makes sense. I need to make this dependent on the backend version. I should have this information already, however, so I can add this

paulgessinger commented 5 months ago

Hey @xcojonny are you sure about this? I just got around to update and test this, and it seems like the documents end up in the trash if I delete them from the app. I also checked that the frontend also still uses a plain DELETE requests to delete a document, and that's exactly what the app does.

Can you double check the behavior you're observing?

xcojonny commented 5 months ago

Hej, I just double checked. You're right. Don't know what went wrong. Sorry for the inconvenience!

Thank you can close this one.

paulgessinger commented 5 months ago

I'm still planning to support viewing and emptying the trash bin from the app, so I'll keep it open until that's done!