fix: reset gossiped timestamp on securejoin

If verified key for a contact is changed via securejoin,
gossip the keys in every group with this contact next time
we send a message there to let others learn new verified key
and let the contact who has resetup their device learn keys of others
in groups.
This commit is contained in:
link2xt
2023-11-15 07:54:27 +00:00
parent 45a8004b33
commit e77805471c
3 changed files with 31 additions and 35 deletions

View File

@@ -426,6 +426,7 @@ pub(crate) async fn handle_securejoin_handshake(
.await?;
return Ok(HandshakeMessage::Ignore);
}
contact_id.regossip_keys(context).await?;
Contact::scaleup_origin_by_id(context, contact_id, Origin::SecurejoinInvited).await?;
info!(context, "Auth verified.",);
context.emit_event(EventType::ContactsChanged(Some(contact_id)));