Add "Complete verification" item in the root setting screen.

This commit is contained in:
Benoit Marty 2023-06-30 16:35:09 +02:00 committed by Benoit Marty
parent 6c5c050ba3
commit d0cf400146
9 changed files with 46 additions and 9 deletions

View file

@ -69,7 +69,6 @@ import io.element.android.services.analytics.api.AnalyticsService
import io.element.android.services.appnavstate.api.AppNavigationStateService
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.debounce
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
@ -292,6 +291,10 @@ class LoggedInFlowNode @AssistedInject constructor(
override fun onOpenBugReport() {
plugins<Callback>().forEach { it.onOpenBugReport() }
}
override fun onVerifyClicked() {
backstack.push(NavTarget.VerifySession)
}
}
preferencesEntryPoint.nodeBuilder(this, buildContext)
.callback(callback)