From ebb7a48e8e4fdf5dc242a2b0670915e3df9f2898 Mon Sep 17 00:00:00 2001 From: CyB3RC0nN0R Date: Tue, 9 Jun 2020 17:06:40 +0200 Subject: [PATCH] Process ContactOperationEvent --- src/main/java/envoy/client/net/Client.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/envoy/client/net/Client.java b/src/main/java/envoy/client/net/Client.java index e36f9ee..fcf9dd0 100644 --- a/src/main/java/envoy/client/net/Client.java +++ b/src/main/java/envoy/client/net/Client.java @@ -152,8 +152,8 @@ public class Client implements Closeable { // Process contact searches receiver.registerProcessor(ContactSearchResult.class, eventBus::dispatch); - receiver.registerProcessor(Contact.class, - contacts -> eventBus.dispatch(new ContactOperationEvent(contacts.getContacts().iterator().next(), ElementOperation.ADD))); + // Process contact operations + receiver.registerProcessor(ContactOperationEvent.class, eventBus::dispatch); // Process group size changes receiver.registerProcessor(GroupResizeEvent.class, evt -> { localDB.updateGroup(evt); eventBus.dispatch(evt); });