mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
simplify
This commit is contained in:
@@ -839,17 +839,6 @@ pub(crate) async fn observe_securejoin_on_other_device(
|
|||||||
inviter_progress(context, contact_id, chat_id, chat_type)?;
|
inviter_progress(context, contact_id, chat_id, chat_type)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
if matches!(step, SecureJoinStep::RequestWithAuth)
|
|
||||||
&& mime_message
|
|
||||||
.get_header(HeaderDef::SecureJoin)
|
|
||||||
.is_some_and(|s| s.starts_with("vc-"))
|
|
||||||
{
|
|
||||||
// This actually reflects what happens on the first device (which does the secure
|
|
||||||
// join) and causes a subsequent "vg-member-added" message to create an unblocked
|
|
||||||
// verified group.
|
|
||||||
ChatId::create_for_contact_with_blocked(context, contact_id, Blocked::Not).await?;
|
|
||||||
}
|
|
||||||
|
|
||||||
if matches!(step, SecureJoinStep::MemberAdded) {
|
if matches!(step, SecureJoinStep::MemberAdded) {
|
||||||
Ok(HandshakeMessage::Propagate)
|
Ok(HandshakeMessage::Propagate)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user