Commit dc6f9936 authored by Lucio Maciel's avatar Lucio Maciel

Fix crash on MessageInfoFragment

parent c4cd2eeb
......@@ -17,6 +17,7 @@ import chat.rocket.android.chatinformation.presentation.MessageInfoView
import chat.rocket.android.chatinformation.viewmodel.ReadReceiptViewModel
import chat.rocket.android.util.extensions.setVisible
import chat.rocket.android.util.extensions.showToast
import chat.rocket.android.util.extensions.ui
import dagger.android.support.AndroidSupportInjection
import kotlinx.android.synthetic.main.fragment_message_info.*
import javax.inject.Inject
......@@ -84,16 +85,22 @@ class MessageInfoFragment : Fragment(), MessageInfoView {
}
override fun showLoading() {
ui {
view_loading.setVisible(true)
view_loading.show()
}
}
override fun hideLoading() {
ui {
view_loading.hide()
view_loading.setVisible(false)
}
}
override fun showReadReceipts(messageReceipts: List<ReadReceiptViewModel>) {
ui {
adapter.addAll(messageReceipts)
}
}
}
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