From 9111880dcf4ecb9672d70fe0f16ea240127a7b12 Mon Sep 17 00:00:00 2001 From: DieGurke <55625494+DieGurke@users.noreply.github.com> Date: Sat, 11 Jul 2020 14:46:13 +0200 Subject: [PATCH] Little Bug Fix --- src/main/java/envoy/client/ui/controller/ChatScene.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/envoy/client/ui/controller/ChatScene.java b/src/main/java/envoy/client/ui/controller/ChatScene.java index 1c626b2..b2ae0ef 100644 --- a/src/main/java/envoy/client/ui/controller/ChatScene.java +++ b/src/main/java/envoy/client/ui/controller/ChatScene.java @@ -139,6 +139,7 @@ public final class ChatScene implements Restorable { Platform.runLater(() -> { userList.getItems().remove(chat); userList.getItems().add(0, chat); + if (chat.equals(currentChat)) userList.getSelectionModel().select(0); localDB.getChats().remove(chat); localDB.getChats().add(0, chat); });