Commit 84093371 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Fix update of the messages on adapter when a message with url arrives.

parent c1871a62
......@@ -213,7 +213,12 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardPopup.Listener {
}
override fun dispatchUpdateMessage(index: Int, message: List<BaseViewModel<*>>) {
adapter.updateItem(message.last())
if (message.size == 1) {
adapter.updateItem(message.last())
} else {
adapter.updateItem(message.last())
adapter.prependData(listOf(message.first()))
}
}
override fun dispatchDeleteMessage(msgId: String) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment