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
c4a62ea8
Commit
c4a62ea8
authored
Feb 14, 2018
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong indentation.
parent
aa269d78
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
19 deletions
+11
-19
LoginPresenter.kt
...droid/authentication/login/presentation/LoginPresenter.kt
+2
-2
SignupPresenter.kt
...oid/authentication/signup/presentation/SignupPresenter.kt
+6
-12
TwoFAPresenter.kt
...d/authentication/twofactor/presentation/TwoFAPresenter.kt
+2
-2
ChatRoomPresenter.kt
...rocket/android/chatroom/presentation/ChatRoomPresenter.kt
+1
-3
No files found.
app/src/main/java/chat/rocket/android/authentication/login/presentation/LoginPresenter.kt
View file @
c4a62ea8
app/src/main/java/chat/rocket/android/authentication/signup/presentation/SignupPresenter.kt
View file @
c4a62ea8
...
@@ -50,16 +50,10 @@ class SignupPresenter @Inject constructor(private val view: SignupView,
...
@@ -50,16 +50,10 @@ class SignupPresenter @Inject constructor(private val view: SignupView,
view
.
showLoading
()
view
.
showLoading
()
try
{
try
{
client
.
signup
(
// TODO This function returns a user so should we save it?
email
,
client
.
signup
(
email
,
name
,
username
,
password
)
name
,
// TODO This function returns a user token so should we save it?
username
,
client
.
login
(
username
,
password
)
password
)
// TODO This function returns a user so should we save it?
client
.
login
(
username
,
password
)
// TODO This function returns a user token so should we save it?
val
me
=
client
.
me
()
val
me
=
client
.
me
()
localRepository
.
save
(
LocalRepository
.
USERNAME_KEY
,
me
.
username
)
localRepository
.
save
(
LocalRepository
.
USERNAME_KEY
,
me
.
username
)
registerPushToken
()
registerPushToken
()
...
...
app/src/main/java/chat/rocket/android/authentication/twofactor/presentation/TwoFAPresenter.kt
View file @
c4a62ea8
app/src/main/java/chat/rocket/android/chatroom/presentation/ChatRoomPresenter.kt
View file @
c4a62ea8
...
@@ -97,9 +97,7 @@ class ChatRoomPresenter @Inject constructor(private val view: ChatRoomView,
...
@@ -97,9 +97,7 @@ class ChatRoomPresenter @Inject constructor(private val view: ChatRoomView,
view
.
showMessage
(
it
)
view
.
showMessage
(
it
)
}.
ifNull
{
}.
ifNull
{
view
.
showGenericErrorMessage
()
view
.
showGenericErrorMessage
()
view
.
showGenericErrorMessage
()
}
}
view
.
enableMessageInput
()
view
.
enableMessageInput
()
}
}
}
}
...
...
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