From 698b57d99d6bbd27f6ade4a5621fa4f5062de7ff Mon Sep 17 00:00:00 2001 From: delvh Date: Thu, 16 Jul 2020 20:34:24 +0200 Subject: [PATCH] Fixed Bug not updating MessageStatusChanges --- client/src/main/java/envoy/client/ui/ListViewRefresh.java | 2 +- client/src/main/java/envoy/client/ui/controller/ChatScene.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/envoy/client/ui/ListViewRefresh.java b/client/src/main/java/envoy/client/ui/ListViewRefresh.java index b718c98..962b18c 100644 --- a/client/src/main/java/envoy/client/ui/ListViewRefresh.java +++ b/client/src/main/java/envoy/client/ui/ListViewRefresh.java @@ -14,7 +14,7 @@ import javafx.scene.control.ListView; * @author Leon Hofmeister * @since Envoy Client v0.1-beta */ -public class ListViewRefresh { +public final class ListViewRefresh { private ListViewRefresh() {} diff --git a/client/src/main/java/envoy/client/ui/controller/ChatScene.java b/client/src/main/java/envoy/client/ui/controller/ChatScene.java index c261ed6..83e64fe 100644 --- a/client/src/main/java/envoy/client/ui/controller/ChatScene.java +++ b/client/src/main/java/envoy/client/ui/controller/ChatScene.java @@ -175,7 +175,7 @@ public final class ChatScene implements Restorable { .filter(c -> c.getRecipient().getID() == e.getID()) .findAny() .map(Chat::getRecipient) - .ifPresent(u -> { ((User) u).setStatus(e.get()); Platform.runLater(chatList::refresh); })); + .ifPresent(u -> { ((User) u).setStatus(e.get()); Platform.runLater(() -> ListViewRefresh.deepRefresh(chatList)); })); // Listen to contacts changes eventBus.register(ContactOperation.class, e -> {