This commit is contained in:
Benoit Marty 2019-12-13 01:37:29 +01:00
parent 8d1a36425d
commit 1af44ce5f7
3 changed files with 2 additions and 6 deletions

View file

@ -24,6 +24,6 @@ internal open class SessionParamsEntity(
var credentialsJson: String = "",
var homeServerConnectionConfigJson: String = "",
// Set to false when the token is invalid and the user has been soft logged out
// In case of hard logout, this object in deleted from DB
// In case of hard logout, this object is deleted from DB
var isTokenValid: Boolean = true
) : RealmObject()

View file

@ -35,13 +35,11 @@ import javax.inject.Inject
/**
* In this screen, the user is viewing a message informing that he has been logged out
* Extends LoginActivity to get the login with SSO and forget password functionality for free
* Extends LoginActivity to get the login with SSO and forget password functionality for (nearly) free
*/
class SoftLogoutActivity : LoginActivity() {
private val softLogoutViewModel: SoftLogoutViewModel by viewModel()
// TODO For forgotten pwd
// private lateinit var loginSharedActionViewModel: LoginSharedActionViewModel
@Inject lateinit var softLogoutViewModelFactory: SoftLogoutViewModel.Factory
@Inject lateinit var session: Session

View file

@ -31,8 +31,6 @@ import im.vector.riotx.core.platform.VectorViewModel
import im.vector.riotx.features.login.LoginMode
/**
* TODO SSO
* TODO Reset password
* TODO Test push: disable the pushers?
*/
class SoftLogoutViewModel @AssistedInject constructor(