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
fa0ce13b
Commit
fa0ce13b
authored
Mar 03, 2018
by
Lucio Maciel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation with the SDK
parent
8bab94e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
ChatRoomPresenter.kt
...rocket/android/chatroom/presentation/ChatRoomPresenter.kt
+7
-7
ChatRoomsPresenter.kt
...cket/android/chatrooms/presentation/ChatRoomsPresenter.kt
+7
-7
No files found.
app/src/main/java/chat/rocket/android/chatroom/presentation/ChatRoomPresenter.kt
View file @
fa0ce13b
...
...
@@ -148,11 +148,11 @@ class ChatRoomPresenter @Inject constructor(private val view: ChatRoomView,
for
(
status
in
stateChannel
)
{
Timber
.
d
(
"Changing status to: $status"
)
when
(
status
)
{
State
.
Authenticating
->
Timber
.
d
(
"Authenticating"
)
State
.
Connected
->
{
is
State
.
Authenticating
->
Timber
.
d
(
"Authenticating"
)
is
State
.
Connected
->
{
Timber
.
d
(
"Connected"
)
subId
=
client
.
subscribeRoomMessages
(
roomId
)
{
Timber
.
d
(
"subscribe messages for $roomId: $
it
"
)
subId
=
client
.
subscribeRoomMessages
(
roomId
)
{
success
,
_
->
Timber
.
d
(
"subscribe messages for $roomId: $
success
"
)
}
}
}
...
...
@@ -161,10 +161,10 @@ class ChatRoomPresenter @Inject constructor(private val view: ChatRoomView,
}
when
(
client
.
state
)
{
State
.
Connected
->
{
is
State
.
Connected
->
{
Timber
.
d
(
"Already connected"
)
subId
=
client
.
subscribeRoomMessages
(
roomId
)
{
Timber
.
d
(
"subscribe messages for $roomId: $
it
"
)
subId
=
client
.
subscribeRoomMessages
(
roomId
)
{
success
,
_
->
Timber
.
d
(
"subscribe messages for $roomId: $
success
"
)
}
}
else
->
client
.
connect
()
...
...
app/src/main/java/chat/rocket/android/chatrooms/presentation/ChatRoomsPresenter.kt
View file @
fa0ce13b
...
...
@@ -99,14 +99,14 @@ class ChatRoomsPresenter @Inject constructor(private val view: ChatRoomsView,
for
(
status
in
stateChannel
)
{
Timber
.
d
(
"Changing status to: $status"
)
when
(
status
)
{
State
.
Authenticating
->
Timber
.
d
(
"Authenticating"
)
State
.
Connected
->
{
is
State
.
Authenticating
->
Timber
.
d
(
"Authenticating"
)
is
State
.
Connected
->
{
Timber
.
d
(
"Connected"
)
client
.
subscribeSubscriptions
{
Timber
.
d
(
"subscriptions: $
it
"
)
client
.
subscribeSubscriptions
{
success
,
_
->
Timber
.
d
(
"subscriptions: $
success
"
)
}
client
.
subscribeRooms
{
Timber
.
d
(
"rooms: $
it
"
)
client
.
subscribeRooms
{
success
,
_
->
Timber
.
d
(
"rooms: $
success
"
)
}
}
}
...
...
@@ -115,7 +115,7 @@ class ChatRoomsPresenter @Inject constructor(private val view: ChatRoomsView,
}
when
(
client
.
state
)
{
State
.
Connected
->
{
is
State
.
Connected
->
{
Timber
.
d
(
"Already connected"
)
}
else
->
client
.
connect
()
...
...
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