Commit 2e1aa54d authored by Leonardo Aramaki's avatar Leonardo Aramaki

Rename onLogOut method name to onLogout

parent 373e2593
......@@ -261,7 +261,7 @@ class ChatRoomsPresenter @Inject constructor(private val view: ChatRoomsView,
client.logout()
//TODO: Add the code to unsubscribe to all subscriptions.
client.disconnect()
view.onLogOut()
view.onLogout()
} catch (e: RocketChatException) {
Timber.e(e)
view.showMessage(e.message!!)
......
......@@ -16,5 +16,5 @@ interface ChatRoomsView : LoadingView, MessageView {
/**
* User has successfully logged out from the current server.
*/
fun onLogOut()
fun onLogout()
}
\ No newline at end of file
......@@ -121,7 +121,7 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
override fun showGenericErrorMessage() = showMessage(getString(R.string.msg_generic_error))
override fun onLogOut() {
override fun onLogout() {
activity?.apply {
finish()
val intent = Intent(this, AuthenticationActivity::class.java)
......
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