forked from j62/ctbrec
Don't show replies, but only new status
This commit is contained in:
parent
2b82215678
commit
0a58b91fec
|
@ -53,10 +53,12 @@ public class NewsTab extends Tab implements TabSelectionListener {
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
layout.getChildren().clear();
|
layout.getChildren().clear();
|
||||||
for (Status status : statusArray) {
|
for (Status status : statusArray) {
|
||||||
|
if(status.getInReplyToId() == null) {
|
||||||
StatusPane stp = new StatusPane(status);
|
StatusPane stp = new StatusPane(status);
|
||||||
layout.getChildren().add(stp);
|
layout.getChildren().add(stp);
|
||||||
VBox.setMargin(stp, new Insets(10));
|
VBox.setMargin(stp, new Insets(10));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else if(body.startsWith("{")) {
|
} else if(body.startsWith("{")) {
|
||||||
JSONObject json = new JSONObject(response.body().string());
|
JSONObject json = new JSONObject(response.body().string());
|
||||||
|
|
Loading…
Reference in New Issue