@@ -72,7 +72,7 @@ public class ContactSearchTab implements EventListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* Disables the clear and search button if no text is present in the search bar.
|
||||
* If text is present, sends a request to the server.
|
||||
*
|
||||
* @since Envoy Client v0.1-beta
|
||||
*/
|
||||
@@ -111,12 +111,12 @@ public class ContactSearchTab implements EventListener {
|
||||
}
|
||||
}
|
||||
|
||||
private void addAsContact() {
|
||||
|
||||
private void addAsContact() {
|
||||
|
||||
// Sends the event to the server
|
||||
final var event = new ContactOperation(currentlySelectedUser, ElementOperation.ADD);
|
||||
eventBus.dispatch(new SendEvent(event));
|
||||
|
||||
|
||||
// Removes the chosen user and updates the UI
|
||||
userList.getItems().remove(currentlySelectedUser);
|
||||
eventBus.dispatch(event);
|
||||
|
Reference in New Issue
Block a user