Calculate a verification key that matches KDE/Android #1493
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is based on earlier work by @strugee in #1148.
When the other party initiates the request the verification key is shown as a notification as before, but it doesn't seem to be shown anywhere. The previous pull request could be maybe rebased on top of this, as I think it had some UI for that?
I think the GLib checksum should "just work" with Javascript, and when I took away the call to
.free
both errors "code should not be reached" and the segfault that (according to gdb) happened inside g_checksum_copy went away.There's a bug on the KDE Connect Android side that has been fixed in master (https://invent.kde.org/network/kdeconnect-android/-/commit/8f49ff57ab43961bea65cddd35b250f7f5301567), but not yet released to F-Droid which leaves out the last two characters from the verification key on the Android side. I think we should still show the full thing as it has been fixed already even if not released yet.
I developed this against Gnome 42, so for testing can definitely be cherry picked against that.