Fix user list in offline mode
This commit is contained in:
parent
cb3913d95d
commit
ab626d3226
@ -133,8 +133,7 @@ public final class ChatScene {
|
||||
this.client = client;
|
||||
this.writeProxy = writeProxy;
|
||||
|
||||
// TODO: handle offline mode
|
||||
userList.setItems(FXCollections.observableList(localDB.getUser().getContacts().stream().collect(Collectors.toList())));
|
||||
userList.setItems(FXCollections.observableList(localDB.getChats().stream().map(Chat::getRecipient).collect(Collectors.toList())));
|
||||
}
|
||||
|
||||
@FXML
|
||||
|
Reference in New Issue
Block a user