From 57a8d72f1c30045b9522bef88a1bca434cf0c578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Sun, 9 Feb 2020 23:00:01 +0100 Subject: [PATCH] [Feedback] Fix received messages not displaying for user. --- .../edziennik/ui/modules/feedback/FeedbackFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/feedback/FeedbackFragment.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/feedback/FeedbackFragment.kt index 03fc70c3..97924168 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/feedback/FeedbackFragment.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/feedback/FeedbackFragment.kt @@ -70,7 +70,7 @@ class FeedbackFragment : Fragment(), CoroutineScope { fun onFeedbackMessageEvent(event: FeedbackMessageEvent) { EventBus.getDefault().removeStickyEvent(event) val message = event.message - if (currentDeviceId != null && message.deviceId == currentDeviceId) { + if (currentDeviceId == null || message.deviceId == currentDeviceId) { val chatMessage = getChatMessage(message) if (message.received) chatView.receive(chatMessage) else chatView.send(chatMessage)