Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
a6c52ad9
Commit
a6c52ad9
authored
Apr 23, 2018
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handling a case where the "clientId" is not present (but it is "appId" on old servers).
parent
b67c3726
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
LoginPresenter.kt
...droid/authentication/login/presentation/LoginPresenter.kt
+3
-3
No files found.
app/src/main/java/chat/rocket/android/authentication/login/presentation/LoginPresenter.kt
View file @
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment