Commit de501c7c authored by Leonardo Aramaki's avatar Leonardo Aramaki

Remove coroutine explicit cancellation

parent 5da0491d
...@@ -150,7 +150,6 @@ class ChatRoomPresenter @Inject constructor(private val view: ChatRoomView, ...@@ -150,7 +150,6 @@ class ChatRoomPresenter @Inject constructor(private val view: ChatRoomView,
fun deleteMessage(roomId: String, id: String) { fun deleteMessage(roomId: String, id: String) {
launchUI(strategy) { launchUI(strategy) {
if (!getPermissionsInteractor.isMessageDeletingAllowed()) { if (!getPermissionsInteractor.isMessageDeletingAllowed()) {
coroutineContext.cancel()
return@launchUI return@launchUI
} }
//TODO: Default delete message always to true. Until we have the permissions system //TODO: Default delete message always to true. Until we have the permissions system
......
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