mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
Using viewState value to check if it is current session
This commit is contained in:
parent
aa7f7d7111
commit
72637b465f
1 changed files with 2 additions and 3 deletions
|
@ -87,11 +87,10 @@ class SessionOverviewViewModel @AssistedInject constructor(
|
|||
}
|
||||
|
||||
private fun handleVerifySessionAction() = withState { viewState ->
|
||||
val deviceId = viewState.deviceId
|
||||
if (isCurrentSession(deviceId)) {
|
||||
if (viewState.isCurrentSession) {
|
||||
handleVerifyCurrentSession()
|
||||
} else {
|
||||
handleVerifyOtherSession(deviceId)
|
||||
handleVerifyOtherSession(viewState.deviceId)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue