mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
@@ -596,8 +596,15 @@ pub(crate) async fn handle_securejoin_handshake(
|
||||
// Join group.
|
||||
chat::add_contact_to_chat_ex(context, Nosync, joining_chat_id, contact_id, true)
|
||||
.await?;
|
||||
|
||||
let chat = Chat::load_from_db(context, joining_chat_id).await?;
|
||||
|
||||
if chat.typ == Chattype::OutBroadcast {
|
||||
// We don't use the membership consistency algorithm for broadcast channels,
|
||||
// so, sync the memberlist when adding a contact
|
||||
chat.sync_contacts(context).await.log_err(context).ok();
|
||||
}
|
||||
|
||||
inviter_progress(context, contact_id, joining_chat_id, chat.typ)?;
|
||||
// IMAP-delete the message to avoid handling it by another device and adding the
|
||||
// member twice. Another device will know the member's key from Autocrypt-Gossip.
|
||||
|
||||
Reference in New Issue
Block a user