deltachat-ios icon indicating copy to clipboard operation
deltachat-ios copied to clipboard

Delta Chat pasted from …

Open snan opened this issue 3 years ago • 2 comments

If I have something in my clipboard from any other app, even if it's just text from Safari or Notes, but also any other kind of data, I get these messages constantly as soon as I enter Delta Chat. Several in a row until the originating app swaps out.

Screenshot 2022-04-10 at 08 17 47

It comes across as if Delta Chat were snooping on the clip board + it's annoying + it's wasteful (in this case it's a 3d scene with tons of polygons and rigs and angles).

snan avatar Apr 10 '22 06:04 snan

@snan I cannot reprocudce that behavior. Also I'm not sure where this text comes from. It's not part of our sources. These 'Toasts' look almost like Android UI, it's weird. I tried it with an iOS 15.4, iPhone7

Can you give more details about iOS version, device and maybe you have another app in mind that might interfere (e.g. a clipboard app)?

cyBerta avatar Jun 01 '22 12:06 cyBerta

This is on iPad OS 15.5!

snan avatar Jun 02 '22 15:06 snan

On iPad OS 16.1, the problem is both better and much worse.

Because on this version, at least with lockdown mode on, it asks to confirm each paste. This means that using Delta Chat with something in the pastebuffer pops up a ton of such questions. (The workaroudn is to copy something from inside Delta Chat itself.)

snan avatar Dec 02 '22 00:12 snan

Because on this version, at least with lockdown mode on, it asks to confirm each paste

so, if "lockdown mode" is turned off, the message is not shown?

i just tried "lockdown mode" with an iphone13 and ios 16.1.2 and things look good to me, we are still lacking a way to reproduce this (i currently have no ipad at hand :)

so, might be related to ipad+lockdown mode only, maybe this is even regarded as a feature from apple?

r10s avatar Jan 17 '23 13:01 r10s

I'm still getting it and I was getting it before I applied lockdown mode too.

Only difference is that it used to be "Delta Chat pasted from Safari" and now there's a dialog where I can deny it (although that dialog keeps popping up).

snan avatar Jan 17 '23 16:01 snan

thanks for coming back - so we have to check if that happens on ipad only.

r10s avatar Jan 17 '23 23:01 r10s

I've now managed to reproduce on 16.2.

I copy a link from Safari, paste it into Blink, switch to Delta Chat and then Delta Chat wants to read that paste.

snan avatar Jan 18 '23 00:01 snan

Maybe went away on 16.2? 🤷🏻‍♀️

i was testing using 16.1.2 :)

r10s avatar Jan 18 '23 10:01 r10s

Yes, and I could reproduce on 16.1.2

snan avatar Jan 18 '23 13:01 snan

i just reviewed the UIPasteboard.general code while checking https://github.com/deltachat/invite/issues/16 - we're doing at some places UIPasteboard.general.image != nil where we better should do UIPasteboard.general.hasImages according to https://developer.apple.com/documentation/uikit/uipasteboard - still weird that this is not an issue on all ios versions

r10s avatar Feb 28 '23 12:02 r10s