Commit 7c7f235b authored by Leonardo Aramaki's avatar Leonardo Aramaki

Add dispatchDeleteMessage method to ChatRoomView

parent 0859ad08
...@@ -28,6 +28,13 @@ interface ChatRoomView : LoadingView, MessageView { ...@@ -28,6 +28,13 @@ interface ChatRoomView : LoadingView, MessageView {
*/ */
fun showNewMessage(message: MessageViewModel) fun showNewMessage(message: MessageViewModel)
/**
* Dispatch to the recycler views adapter that we should remove a message.
*
* @param msgId The id of the message to be removed.
*/
fun dispatchDeleteMessage(msgId: String)
/** /**
* Dispatch a update to the recycler views adapter about a changed message. * Dispatch a update to the recycler views adapter about a changed message.
* *
...@@ -36,6 +43,5 @@ interface ChatRoomView : LoadingView, MessageView { ...@@ -36,6 +43,5 @@ interface ChatRoomView : LoadingView, MessageView {
fun dispatchUpdateMessage(index: Int, message: MessageViewModel) fun dispatchUpdateMessage(index: Int, message: MessageViewModel)
fun disableMessageInput() fun disableMessageInput()
fun enableMessageInput(clear: Boolean = false) fun enableMessageInput(clear: Boolean = false)
} }
\ No newline at end of file
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