Disable OneDrive integration

it was broken anyway
This commit is contained in:
MM20
2023-04-17 18:10:30 +02:00
parent 168ab729a1
commit 56566b8452
2 changed files with 5 additions and 4 deletions
@@ -80,7 +80,7 @@ internal class AccountsRepositoryImpl(
override fun isSupported(accountType: AccountType): Boolean {
return when (accountType) {
AccountType.Google -> googleApiHelper.isAvailable()
AccountType.Microsoft -> msGraphApiHelper.isAvailable()
AccountType.Microsoft -> false
AccountType.Nextcloud -> true
AccountType.Owncloud -> true
}
@@ -110,9 +110,10 @@ internal class AccountsRepositoryImpl(
}
private suspend fun getMicrosoftAccount(): Account? {
return msGraphApiHelper.getUser()?.let {
return null
/*return msGraphApiHelper.getUser()?.let {
Account(it.name, AccountType.Microsoft)
}
}*/
}
private suspend fun getNextcloudAccount(): Account? {