Plugin/Clipboard: Ignore clipboard.connect event to avoid overwritten on iOS
Refer to BugReport.
This bug can be triggered if the system time of iOS device is behind
of any KDEConnect instance that is capable to send clipboard.connect
packet.
When the condition is meet, each time user switches to KDEConnect iOS
app, peer device will send clipboard.connect
packet to iOS side. Due
to the fact the user has high chance heavily working on such peer device,
like Linux PC, that keep updating the clipboard's timestamp. When there
is a burst need for an iOS to PC synchronization, it simply fails as
the clipboard is always overwritten by the content from PC.
clipboard.connect
will send the same content on each new connection.
Although there is a timestamp field defined in protocol, it won't
work if the event becomes the primary source of synchronization.
I suggest to completely rule out the support for handling that event,
until someday KDEConnect on iOS can keep connection alive while in
the background.
I'm not an Apple Developer. It is even not possible for me to compile the app on macOS due to special permission that must be applied for. Sorry but the changes was not tested at all.