From 8a960b0b15a12e47e5a34f419611da97a564538b Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Thu, 11 Apr 2019 14:05:51 +0400 Subject: [PATCH] Fixed issue with updating message list --- .../java/io/github/chronosx88/influence/logic/ChatLogic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/chronosx88/influence/logic/ChatLogic.java b/app/src/main/java/io/github/chronosx88/influence/logic/ChatLogic.java index 687fcb8..42a607e 100644 --- a/app/src/main/java/io/github/chronosx88/influence/logic/ChatLogic.java +++ b/app/src/main/java/io/github/chronosx88/influence/logic/ChatLogic.java @@ -133,7 +133,7 @@ public class ChatLogic implements IChatLogicContract { case NetworkActions.TEXT_MESSAGE: { TextMessage textMessage = gson.fromJson(json, TextMessage.class); LocalDBWrapper.createMessageEntry(NetworkActions.TEXT_MESSAGE, textMessage.getMessageID(), textMessage.getChatID(), textMessage.getUsername(), textMessage.getSenderID(), textMessage.getTimestamp(), textMessage.getText(), true, false); - ObservableUtils.notifyUI(UIActions.MESSAGE_RECEIVED, textMessage.getMessageID()); + ObservableUtils.notifyUI(UIActions.MESSAGE_RECEIVED, chatID, textMessage.getMessageID()); break; } case NetworkActions.JOIN_CHAT: {