cleanup chat.rs: remove ok_to_continue and return result from add_contact methods

This commit is contained in:
holger krekel
2019-09-23 20:11:07 +02:00
parent faa03e0e14
commit 0759bdde01
2 changed files with 30 additions and 34 deletions

View File

@@ -522,7 +522,9 @@ pub fn handle_securejoin_handshake(
error!(context, "Chat {} not found.", &field_grpid);
return ret;
} else {
chat::add_contact_to_chat_ex(context, group_chat_id, contact_id, true);
if let Err(err) = chat::add_contact_to_chat_ex(context, group_chat_id, contact_id, true) {
error!(context, "failed to add contact: {}", err);
}
}
} else {
send_handshake_msg(context, contact_chat_id, "vc-contact-confirm", "", None, "");