Fixed Bug not updating MessageStatusChanges

This commit is contained in:
delvh 2020-07-16 20:34:24 +02:00
parent 5109605415
commit a17ce52bfa
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import javafx.scene.control.ListView;
* @author Leon Hofmeister * @author Leon Hofmeister
* @since Envoy Client v0.1-beta * @since Envoy Client v0.1-beta
*/ */
public class ListViewRefresh { public final class ListViewRefresh {
private ListViewRefresh() {} private ListViewRefresh() {}

View File

@ -175,7 +175,7 @@ public final class ChatScene implements Restorable {
.filter(c -> c.getRecipient().getID() == e.getID()) .filter(c -> c.getRecipient().getID() == e.getID())
.findAny() .findAny()
.map(Chat::getRecipient) .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 // Listen to contacts changes
eventBus.register(ContactOperation.class, e -> { eventBus.register(ContactOperation.class, e -> {