mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 03:16:29 +03:00
do not delete handshake messages maybe belonging to secure-joins on other devices
This commit is contained in:
@@ -626,8 +626,9 @@ pub(crate) fn handle_securejoin_handshake(
|
||||
let ret = if join_vg {
|
||||
HandshakeMessage::Propagate
|
||||
} else {
|
||||
HandshakeMessage::Done
|
||||
HandshakeMessage::Ignore
|
||||
};
|
||||
|
||||
if context.bob.read().unwrap().expects != DC_VC_CONTACT_CONFIRM {
|
||||
info!(context, "Message belongs to a different handshake.",);
|
||||
return Ok(ret);
|
||||
@@ -713,7 +714,11 @@ pub(crate) fn handle_securejoin_handshake(
|
||||
}
|
||||
context.bob.write().unwrap().status = 1;
|
||||
context.stop_ongoing();
|
||||
Ok(ret)
|
||||
Ok(if join_vg {
|
||||
HandshakeMessage::Propagate
|
||||
} else {
|
||||
HandshakeMessage::Done
|
||||
})
|
||||
}
|
||||
"vg-member-added-received" => {
|
||||
/*==========================================================
|
||||
|
||||
Reference in New Issue
Block a user