Using viewState value to check if it is current session
This commit is contained in:
parent
aa7f7d7111
commit
72637b465f
|
@ -87,11 +87,10 @@ class SessionOverviewViewModel @AssistedInject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleVerifySessionAction() = withState { viewState ->
|
private fun handleVerifySessionAction() = withState { viewState ->
|
||||||
val deviceId = viewState.deviceId
|
if (viewState.isCurrentSession) {
|
||||||
if (isCurrentSession(deviceId)) {
|
|
||||||
handleVerifyCurrentSession()
|
handleVerifyCurrentSession()
|
||||||
} else {
|
} else {
|
||||||
handleVerifyOtherSession(deviceId)
|
handleVerifyOtherSession(viewState.deviceId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue