Removed the selected user from ContactSearchScene upon addition
This commit is contained in:
		@@ -118,7 +118,8 @@ public class ContactSearchScene {
 | 
			
		||||
				final var event = new ContactOperation(user, ElementOperation.ADD);
 | 
			
		||||
				// Sends the event to the server
 | 
			
		||||
				eventBus.dispatch(new SendEvent(event));
 | 
			
		||||
				// Updates the UI
 | 
			
		||||
				// Removes the chosen user and updates the UI
 | 
			
		||||
				userList.getItems().remove(user);
 | 
			
		||||
				eventBus.dispatch(event);
 | 
			
		||||
				logger.log(Level.INFO, "Added user " + user);
 | 
			
		||||
			}));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user