Add contact exchange method for pending contacts.

This commit is contained in:
akwizgran
2019-05-27 14:53:25 +01:00
parent 7c3f2c0bed
commit 60155f146a
4 changed files with 73 additions and 27 deletions

View File

@@ -58,8 +58,8 @@ class ContactExchangeViewModel extends AndroidViewModel {
SecretKey masterKey, boolean alice) {
ioExecutor.execute(() -> {
try {
Contact contact = contactExchangeManager.exchangeContacts(t,
conn, masterKey, alice);
Contact contact = contactExchangeManager.exchangeContacts(conn,
masterKey, alice, true);
// Reuse the connection as a transport connection
connectionManager.manageOutgoingConnection(contact.getId(),
t, conn);