Fix duplicate message notifications
Closes
@@ -45,8 +45,12 @@ public void initialise() {
overlay = nuiManager.addOverlay(NotificationOverlay.ASSET_URI, NotificationOverlay.class);
console.subscribe((Message message) -> {
if (!nuiManager.isOpen("engine:console")) {
+ // make sure the message isn't already shown in the chat overlay
+ if (message.getType() != CoreMessageType.CHAT && message.getType() != CoreMessageType.NOTIFICATION
+ || !nuiManager.isOpen("engine:chat")) {
overlay.setVisible(true);
}
+ }
});
}
