Skip to content

Commit

Permalink
Fix issue with manual flow due to changes to the state mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
wmontwe committed Nov 28, 2023
1 parent cd1b36a commit 85468bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ import com.fsck.k9.mail.store.imap.ImapStoreSettings.isUseCompression
import com.fsck.k9.mail.store.imap.ImapStoreSettings.pathPrefix

fun AccountState.toIncomingServerSettingsState() = incomingServerSettings?.toIncomingServerSettingsState()
?: State(username = StringInputField(value = emailAddress ?: ""))
?: State(
username = StringInputField(value = emailAddress ?: ""),
isLoading = false,
)

private fun ServerSettings.toIncomingServerSettingsState(): State {
return State(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ fun AccountState.toOutgoingServerSettingsState(): State {
?: State(
username = StringInputField(value = emailAddress ?: ""),
password = StringInputField(value = password),

isLoading = false,
)
}

Expand Down

0 comments on commit 85468bb

Please sign in to comment.