mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 13:48:20 +01:00
[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) {
|
fun onFeedbackMessageEvent(event: FeedbackMessageEvent) {
|
||||||
EventBus.getDefault().removeStickyEvent(event)
|
EventBus.getDefault().removeStickyEvent(event)
|
||||||
val message = event.message
|
val message = event.message
|
||||||
if (currentDeviceId != null && message.deviceId == currentDeviceId) {
|
if (currentDeviceId == null || message.deviceId == currentDeviceId) {
|
||||||
val chatMessage = getChatMessage(message)
|
val chatMessage = getChatMessage(message)
|
||||||
if (message.received) chatView.receive(chatMessage)
|
if (message.received) chatView.receive(chatMessage)
|
||||||
else chatView.send(chatMessage)
|
else chatView.send(chatMessage)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user