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
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
21 deletions
+13
-21
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
PinnedMessagesPresenter.kt
.../android/chatroom/presentation/PinnedMessagesPresenter.kt
+2
-2
No files found.
app/src/main/java/chat/rocket/android/authentication/login/presentation/LoginPresenter.kt
View file @
c4a62ea8
...
...
@@ -111,8 +111,8 @@ class LoginPresenter @Inject constructor(private val view: LoginView,
exception
.
message
?.
let
{
view
.
showMessage
(
it
)
}.
ifNull
{
view
.
showGenericErrorMessage
()
}
view
.
showGenericErrorMessage
()
}
}
}
}
finally
{
...
...
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,
view
.
showLoading
()
try
{
client
.
signup
(
email
,
name
,
username
,
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?
// TODO This function returns a user so should we save it?
client
.
signup
(
email
,
name
,
username
,
password
)
// TODO This function returns a user token so should we save it?
client
.
login
(
username
,
password
)
val
me
=
client
.
me
()
localRepository
.
save
(
LocalRepository
.
USERNAME_KEY
,
me
.
username
)
registerPushToken
()
...
...
@@ -68,8 +62,8 @@ class SignupPresenter @Inject constructor(private val view: SignupView,
exception
.
message
?.
let
{
view
.
showMessage
(
it
)
}.
ifNull
{
view
.
showGenericErrorMessage
()
}
view
.
showGenericErrorMessage
()
}
}
finally
{
view
.
hideLoading
()
...
...
app/src/main/java/chat/rocket/android/authentication/twofactor/presentation/TwoFAPresenter.kt
View file @
c4a62ea8
...
...
@@ -58,8 +58,8 @@ class TwoFAPresenter @Inject constructor(private val view: TwoFAView,
exception
.
message
?.
let
{
view
.
showMessage
(
it
)
}.
ifNull
{
view
.
showGenericErrorMessage
()
}
view
.
showGenericErrorMessage
()
}
}
}
finally
{
view
.
hideLoading
()
...
...
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,
view
.
showMessage
(
it
)
}.
ifNull
{
view
.
showGenericErrorMessage
()
view
.
showGenericErrorMessage
()
}
}
view
.
enableMessageInput
()
}
}
...
...
app/src/main/java/chat/rocket/android/chatroom/presentation/PinnedMessagesPresenter.kt
View file @
c4a62ea8
...
...
@@ -46,8 +46,8 @@ class PinnedMessagesPresenter @Inject constructor(private val view: PinnedMessag
view
.
showPinnedMessages
(
messageList
)
view
.
hideLoading
()
}.
ifNull
{
Timber
.
e
(
"Couldn't find a room with id: $roomId at current server."
)
}
Timber
.
e
(
"Couldn't find a room with id: $roomId at current server."
)
}
}
catch
(
e
:
RocketChatException
)
{
Timber
.
e
(
e
)
}
...
...
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