mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-14 16:25:05 +01:00
Handle client certificate alias if currentUser is null (relates to #195)
Signed-off-by: Stephan Ritscher <no3pam@gmail.com>
This commit is contained in:
parent
4521eac532
commit
ab4ccf1db3
@ -44,12 +44,13 @@ class MagicKeyManager(private val keyManager: X509KeyManager, private val usersR
|
||||
user?.let {
|
||||
it.clientCertificate?.let {
|
||||
alias = it
|
||||
} ?: run {
|
||||
}
|
||||
}
|
||||
if (alias == null) {
|
||||
appPreferences.temporaryClientCertAlias?.let {
|
||||
alias = it
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return alias
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user