Send and receive verified messages

Fixes #85
This commit is contained in:
AsamK 2017-06-11 16:28:03 +02:00
parent 23fcd8a230
commit 4377a2179b
3 changed files with 80 additions and 2 deletions

View file

@ -992,6 +992,16 @@ public class Main {
System.out.println(" - " + number);
}
}
if (syncMessage.getVerified().isPresent()) {
System.out.println("Received sync message with verified identities:");
final List<VerifiedMessage> verifiedList = syncMessage.getVerified().get();
for (VerifiedMessage v : verifiedList) {
System.out.println(" - " + v.getDestination() + ": " + v.getVerified());
String safetyNumber = formatSafetyNumber(m.computeSafetyNumber(v.getDestination(), v.getIdentityKey()));
System.out.println(" " + safetyNumber);
}
}
}
}
} else {