[Feedback] Fix received messages not displaying for user.

This commit is contained in:
Kuba Szczodrzyński 2020-02-09 23:00:01 +01:00
parent 7e57617e04
commit 57a8d72f1c

View File

@ -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)