Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hack around broken 'Add Second Device' QR code #2595

Closed
wants to merge 1 commit into from

Conversation

r10s
Copy link
Member

@r10s r10s commented Feb 9, 2025

core 1.155.2 accidentally broke compatibility
to add-second-device QR codes of previous versions;

this is esp. bad as ppl will have different versions for some days at least, weakening overall UX, esp. of first-time-users
that may come to delta because of praised, seamless multidevice ... :)

this PR is a little experiment, if it is really only the minor JSON change, or sth deeer.

seems, these two repacements fix the issue,
allowing us to release much mess stressful,
while users being happy.

if we think, this is fine,
we should do that better in core, however.

the hack can be removed 3 releases later or so.

see deltachat/deltachat-core-rust#6518 for more details and for snippets how the QR code looks and what this hack is doing

cc @link2xt

core 1.155.2 accidentally broke compatibility
to add-second-device QR codes of previous versions;

this is esp. bad as ppl will have different versions for some days at least,
weakening overall UX, esp. of first-time-users
that may come to delta because of praised, seamless multidevice ... :)

this PR is a little experiment, if it is really only the minor JSON change,
or sth deeer.

seems, these two repacements fix the issue,
allowing us to release much mess stressful,
while users being happy.

if we think, this is fine,
we should do that better in core, however.

the hack can be removed 3 releases later or so.
@r10s r10s requested a review from link2xt February 9, 2025 14:38
@r10s r10s changed the title fix broken 'Add Second Device' QR code hack around broken 'Add Second Device' QR code Feb 9, 2025
@r10s
Copy link
Member Author

r10s commented Feb 10, 2025

replaced by deltachat/deltachat-core-rust#6528

@r10s r10s closed this Feb 10, 2025
r10s added a commit to deltachat/deltachat-core-rust that referenced this pull request Feb 10, 2025
this converts old QR codes to the new format, in an hacky, but simple
way, see #6518 for more details and for code snippet


then QR code change is esp. bad as ppl will have different versions for
some days at least, weakening overall UX, esp. of first-time-users that
may come to delta because of praised, seamless multidevice ... :)


i tested in deltachat/deltachat-ios#2595 that
this actually fixes the problem, and there is no deeper issue with
changed chashes or so - seemed not to be the case, at least, with this
hack, core accepts QR codes from the released 1.52-and-before series

this hack gives user time to update, it can be removed after some months
(we can also remove the old BACKUP qr code alltogether then)

we should still not wait too long with the PR as there are already
versions out with the "new/bad" QR code (and growing, as new iOS
installations will get the new format, one cannot revert a version, only
pause rollout)

---------

Co-authored-by: link2xt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant