Skip to content

Comments

fix: Save QR code token regardless of whether the group exists (#5954)#5956

Merged
iequidoo merged 1 commit intomainfrom
iequidoo/async-qr-code-tokens
Sep 16, 2024
Merged

fix: Save QR code token regardless of whether the group exists (#5954)#5956
iequidoo merged 1 commit intomainfrom
iequidoo/async-qr-code-tokens

Conversation

@iequidoo
Copy link
Collaborator

@iequidoo iequidoo commented Sep 5, 2024

Groups promotion to other devices and QR code tokens synchronisation are not synchronised processes, so there are reasons why a QR code token may arrive earlier than the first group message:

  • We are going to upload sync messages via IMAP while group messages are sent by SMTP.
  • If sync messages go to the mvbox, they can be fetched earlier than group messages from Inbox.

Fix #5954

TODO(done): Test. I think that test_securejoin.py:test_qr_securejoin() may be left unmodified, it's very unlikely that the alice2 device won't receive the QR code token by the moment Fiona joins (moreover, Alice doesn't have the mvbox in this test). But a new test checking that QR code tokens are saved if arrive earlier than first group messages is needed. EDIT: sync::test_unpromoted_group_qr_sync() tests this now.

@iequidoo iequidoo force-pushed the iequidoo/async-qr-code-tokens branch from e874df1 to bd2a446 Compare September 5, 2024 21:34
@iequidoo iequidoo changed the title fix: Save QR code token regardless of whether the group exists (#5901) fix: Save QR code token regardless of whether the group exists (#5954) Sep 5, 2024
@iequidoo iequidoo force-pushed the iequidoo/async-qr-code-tokens branch from bd2a446 to 3fd4596 Compare September 6, 2024 20:26
@iequidoo iequidoo marked this pull request as ready for review September 6, 2024 20:38
@iequidoo iequidoo requested review from link2xt and r10s September 6, 2024 20:39
@iequidoo iequidoo force-pushed the iequidoo/async-qr-code-tokens branch 4 times, most recently from cd83bc9 to bff4a09 Compare September 8, 2024 23:00
@iequidoo iequidoo requested a review from Hocuri September 9, 2024 03:21
@iequidoo iequidoo force-pushed the iequidoo/async-qr-code-tokens branch from bff4a09 to a1f289a Compare September 11, 2024 01:39
@iequidoo iequidoo requested a review from link2xt September 11, 2024 02:06
@iequidoo iequidoo force-pushed the iequidoo/async-qr-code-tokens branch from a1f289a to 2e59700 Compare September 11, 2024 23:58
@iequidoo iequidoo requested a review from link2xt September 12, 2024 01:48
@iequidoo iequidoo force-pushed the iequidoo/async-qr-code-tokens branch from 2e59700 to d90476e Compare September 12, 2024 02:09
Groups promotion to other devices and QR code tokens synchronisation are not synchronised processes,
so there are reasons why a QR code token may arrive earlier than the first group message:
- We are going to upload sync messages via IMAP while group messages are sent by SMTP.
- If sync messages go to the mvbox, they can be fetched earlier than group messages from Inbox.
@iequidoo iequidoo force-pushed the iequidoo/async-qr-code-tokens branch from d90476e to 50d2386 Compare September 15, 2024 23:57
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.

Save QR code tokens regardless of whether the group exists

2 participants