forked from github/szkolny
[Feedback] Fix received messages not displaying for user.
This commit is contained in:
parent
7e57617e04
commit
57a8d72f1c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user