Encrypted (using E2E) attachments after deletion

@miwie Yep, a while back I adjusted the script to make sure there's no data loss. (The note history feature was implemented after I created the script.) Thus it takes the note history into account.
Maybe I should have a look at what can be done when the note history is deactivated. The problem is that someone could deactivate it for a day/hour/minute and then activate it again. I have to think about that.

Btw, you shouldn't post your token here. :wink: