mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 06:56:29 +03:00
add DC_EVENT_SECUREJOIN_SUCCEEDED
This commit is contained in:
committed by
holger krekel
parent
22a0e3fe9c
commit
f53b3c2e7b
@@ -611,6 +611,14 @@ pub fn handle_securejoin_handshake(
|
||||
}
|
||||
inviter_progress!(context, contact_id, 800);
|
||||
inviter_progress!(context, contact_id, 1000);
|
||||
let field_grpid = mimeparser
|
||||
.lookup_optional_field("Secure-Join-Group")
|
||||
.unwrap_or_default();
|
||||
let (group_chat_id, _, _) = chat::get_chat_id_by_grpid(context, &field_grpid);
|
||||
context.call_cb(Event::SecurejoinSucceeded {
|
||||
chat_id: group_chat_id,
|
||||
contact_id: contact_id,
|
||||
});
|
||||
} else {
|
||||
warn!(context, "vg-member-added-received invalid.",);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user