Fix user list in offline mode

This commit is contained in:
Kai S. K. Engelbart 2020-06-09 14:12:27 +02:00
parent 7f6f538849
commit 72354b3678

View File

@ -133,8 +133,7 @@ public final class ChatScene {
this.client = client; this.client = client;
this.writeProxy = writeProxy; this.writeProxy = writeProxy;
// TODO: handle offline mode userList.setItems(FXCollections.observableList(localDB.getChats().stream().map(Chat::getRecipient).collect(Collectors.toList())));
userList.setItems(FXCollections.observableList(localDB.getUser().getContacts().stream().collect(Collectors.toList())));
} }
@FXML @FXML