Skip to content

fix: copy auth code to desktop clipboard

SMS auth codes generate a notification that has a "Copy $code" button (eg. "Copy 123456"), but the button doesn't actually copy the code as expected. This patch fixes that.

How to Test

  • Kill kdeconnectd if already running
  • Build & run kdeconnectd from this MR
  • Send an SMS to your phone linked via the Android app some dummy text (you can just send yourself an SMS and turn the screen off):
Your code is: 775643
  • When the notifications arrives on desktop, click Copy "775643"
  • Verify that 775643 is now in the desktop clipboard

BUG: 451539

BUG: 435614

Edited by Kristen McWilliam

Merge request reports

Loading