Unverified Commit 3e457b9d authored by Rafael Kellermann Streit's avatar Rafael Kellermann Streit Committed by GitHub

Merge pull request #1166 from RocketChat/fix/settings.oauth

[FIX] settings.oauth
parents 1aa74e2e a6c52ad9
...@@ -280,9 +280,9 @@ class LoginPresenter @Inject constructor( ...@@ -280,9 +280,9 @@ class LoginPresenter @Inject constructor(
} }
private fun getOauthClientId(listMap: List<Map<String, Any>>, serviceName: String): String? { private fun getOauthClientId(listMap: List<Map<String, Any>>, serviceName: String): String? {
return listMap.find { map -> map.containsValue(serviceName) } return listMap.find { map -> map.containsValue(serviceName) }?.let {
?.get("clientId") it["clientId"] ?: it["appId"]
.toString() }.toString()
} }
private suspend fun saveAccount(username: String) { private suspend fun saveAccount(username: String) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment