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