Fix compilation issues. (#4750)

* Fix compilation issues.

* Fix compilation issues.
This commit is contained in:
Benoit Marty 2025-05-20 13:12:01 +02:00 committed by GitHub
parent 0e90704603
commit e50dfa944a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -58,7 +58,7 @@ class ChangeServerPresenter @Inject constructor(
if (enterpriseService.isAllowedToConnectToHomeserver(data.url).not()) {
throw UnauthorizedAccountProviderException(
unauthorisedAccountProviderTitle = data.title,
authorisedAccountProviderTitles = listOfNotNull(enterpriseService.defaultHomeserver())
authorisedAccountProviderTitles = enterpriseService.defaultHomeserverList(),
)
}
authenticationService.setHomeserver(data.url).map {

View file

@ -100,7 +100,7 @@ class QrCodeScanPresenter @Inject constructor(
if (serverName != null && enterpriseService.isAllowedToConnectToHomeserver(serverName).not()) {
throw UnauthorizedAccountProviderException(
unauthorisedAccountProviderTitle = serverName,
authorisedAccountProviderTitles = listOfNotNull(enterpriseService.defaultHomeserver())
authorisedAccountProviderTitles = enterpriseService.defaultHomeserverList(),
)
}
data