From 40447f3f42e799af08dee7b36b11a5bc8b15e436 Mon Sep 17 00:00:00 2001 From: kske Date: Sun, 20 Sep 2020 14:13:11 +0200 Subject: [PATCH] Change Event Bus version to 0.0.4, fix message event handler The message event handler ignored group messages, as event handlers do not include subtypes be default. This behavior has been implemented in Event Bus 0.0.4 and integrated into Envoy. --- client/src/main/java/envoy/client/ui/controller/ChatScene.java | 2 +- common/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 36845a3..912076a 100644 --- a/client/src/main/java/envoy/client/ui/controller/ChatScene.java +++ b/client/src/main/java/envoy/client/ui/controller/ChatScene.java @@ -210,7 +210,7 @@ public final class ChatScene implements EventListener, Restorable { @Event(eventType = BackEvent.class) private void onBackEvent() { tabPane.getSelectionModel().select(Tabs.CONTACT_LIST.ordinal()); } - @Event + @Event(includeSubtypes = true) private void onMessage(Message message) { // The sender of the message is the recipient of the chat diff --git a/common/pom.xml b/common/pom.xml index b2165ef..eb8daea 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -23,7 +23,7 @@ dev.kske event-bus - 0.0.3 + 0.0.4 org.junit.jupiter