Improve API and documentation
This commit is contained in:
parent
0f3858649c
commit
64b5b53510
9 changed files with 22 additions and 15 deletions
|
|
@ -75,9 +75,9 @@ fun Flow<List<SessionData>>.toUserListFlow(): Flow<List<String>> {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return a flow emitting the userId of the latest session if logged in, null otherwise.
|
||||
* @return a flow emitting the sessionId of the latest session if logged in, null otherwise.
|
||||
*/
|
||||
fun SessionStore.userIdFlow(): Flow<String?> {
|
||||
fun SessionStore.sessionIdFlow(): Flow<String?> {
|
||||
return loggedInStateFlow().map {
|
||||
when (it) {
|
||||
is LoggedInState.LoggedIn -> it.sessionId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue