Both for setup-contact and group join protocol we want to synchronize "verification" states in order to simplify securejoin code and reduce the network protocol. First we introduce two new sync messages for Alice and bob respectively:
Once verifications are explicitely synced we can:
Note: maybe Alice does not need to send a sync message on verified group-join because alice's "vg-member-added" message is observable on her other devices anyway. But it probably makes sense to not try too hard to avoid verification-sync here, and rather have the "verification" sync independently from vg-member-added. In the case of setup-contact the verifications need to be synced because the other device doesn't have an observable message like the in vg-member-added group-join case.
Both for setup-contact and group join protocol we want to synchronize "verification" states in order to simplify securejoin code and reduce the network protocol. First we introduce two new sync messages for Alice and bob respectively:
Once verifications are explicitely synced we can:
observe_securejoin...at https://github.com/deltachat/deltachat-core-rust/blob/main/src/securejoin.rs#L531 and simplify related code and testsNote: maybe Alice does not need to send a sync message on verified group-join because alice's "vg-member-added" message is observable on her other devices anyway. But it probably makes sense to not try too hard to avoid verification-sync here, and rather have the "verification" sync independently from vg-member-added. In the case of setup-contact the verifications need to be synced because the other device doesn't have an observable message like the in vg-member-added group-join case.