Skip to content

fix: do not send NetworkPacket if autoshare is disabled when connecting

Marx Zhu requested to merge zhlmarx/kdeconnect-kde:master into master

Summary

Clipboard is sent to phone when reconnecting after disabling clipboard autoshare. The content of clipboard will be sent in connecting packet. In this patch, the connecting packet will not have content field if autoshare is disabled or the type of content is password and sharepassword is disabled.

BUG: 476551

Test Plan

  1. Make desktop and phone connected by KDE Connect.
  2. Disable clipboard autoshare from desktop.
  3. Disconnect desktop from WiFi and wait until KDE Connect disappears from systray.
  4. Copy some text in desktop.
  5. Connect to WiFi and refresh pair new device screen on phone to reconnect.

Before:

text is sent from desktop to the phone.

After:

text is not sent.

Merge request reports

Loading