Session database: use the new count API.
This commit is contained in:
parent
85c9fd916b
commit
785ae3c1ad
4 changed files with 6 additions and 4 deletions
|
|
@ -349,7 +349,7 @@ class RootFlowNode(
|
|||
} else {
|
||||
// wait for the current session to be restored
|
||||
val loggedInFlowNode = attachSession(latestSessionId)
|
||||
if (sessionStore.getAllSessions().size > 1) {
|
||||
if (sessionStore.numberOfSessions() > 1) {
|
||||
// Several accounts, let the user choose which one to use
|
||||
backstack.push(
|
||||
NavTarget.AccountSelect(
|
||||
|
|
@ -379,7 +379,7 @@ class RootFlowNode(
|
|||
is PermalinkData.FallbackLink -> Unit
|
||||
is PermalinkData.RoomEmailInviteLink -> Unit
|
||||
else -> {
|
||||
if (sessionStore.getAllSessions().size > 1) {
|
||||
if (sessionStore.numberOfSessions() > 1) {
|
||||
// Several accounts, let the user choose which one to use
|
||||
backstack.push(
|
||||
NavTarget.AccountSelect(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue