Process ContactOperationEvent
This commit is contained in:
parent
0efd57f2ef
commit
ebb7a48e8e
@ -152,8 +152,8 @@ public class Client implements Closeable {
|
|||||||
// Process contact searches
|
// Process contact searches
|
||||||
receiver.registerProcessor(ContactSearchResult.class, eventBus::dispatch);
|
receiver.registerProcessor(ContactSearchResult.class, eventBus::dispatch);
|
||||||
|
|
||||||
receiver.registerProcessor(Contact.class,
|
// Process contact operations
|
||||||
contacts -> eventBus.dispatch(new ContactOperationEvent(contacts.getContacts().iterator().next(), ElementOperation.ADD)));
|
receiver.registerProcessor(ContactOperationEvent.class, eventBus::dispatch);
|
||||||
|
|
||||||
// Process group size changes
|
// Process group size changes
|
||||||
receiver.registerProcessor(GroupResizeEvent.class, evt -> { localDB.updateGroup(evt); eventBus.dispatch(evt); });
|
receiver.registerProcessor(GroupResizeEvent.class, evt -> { localDB.updateGroup(evt); eventBus.dispatch(evt); });
|
||||||
|
Reference in New Issue
Block a user