Remote Contact Adding UI: Address review comments

This commit is contained in:
Torsten Grote
2019-04-26 13:09:57 -03:00
parent 4bf21b2f3b
commit 7a71d2bad4
48 changed files with 155 additions and 169 deletions

View File

@@ -138,11 +138,6 @@ class ContactManagerImpl implements ContactManager {
return new String(c);
}
@Override
public boolean isValidRemoteContactLink(String link) {
return LINK_REGEX.matcher(link).matches();
}
@Override
public void addRemoteContactRequest(String link, String alias) {
// TODO replace with real implementation
@@ -199,7 +194,7 @@ class ContactManagerImpl implements ContactManager {
pendingContacts.remove(pendingContact);
Event e;
try {
if (true || new Random().nextBoolean()) {
if (new Random().nextBoolean()) {
getLogger("TMP").warning("FAILED");
e = new PendingContactStateChangedEvent(id, FAILED);
PendingContact updated = new PendingContact(id,