Fixed Bug not updating MessageStatusChanges
This commit is contained in:
parent
5109605415
commit
a17ce52bfa
@ -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() {}
|
||||||
|
|
||||||
|
@ -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 -> {
|
||||||
|
Reference in New Issue
Block a user