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
d575ffb6
Commit
d575ffb6
authored
Aug 16, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update SidebarMainFragment.java
parent
d03dedd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
SidebarMainFragment.java
.../rocket/android/fragment/sidebar/SidebarMainFragment.java
+8
-13
No files found.
app/src/main/java/chat/rocket/android/fragment/sidebar/SidebarMainFragment.java
View file @
d575ffb6
...
...
@@ -29,7 +29,6 @@ import chat.rocket.android.layouthelper.chatroom.roomlist.RoomListAdapter;
import
chat.rocket.android.layouthelper.chatroom.roomlist.RoomListHeader
;
import
chat.rocket.android.layouthelper.chatroom.roomlist.UnreadRoomListHeader
;
import
chat.rocket.android.renderer.UserRenderer
;
import
chat.rocket.core.SortDirection
;
import
chat.rocket.core.interactors.RoomInteractor
;
import
chat.rocket.core.interactors.SessionInteractor
;
import
chat.rocket.core.models.Room
;
...
...
@@ -145,18 +144,14 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
if
(
spotlight
.
getType
().
equals
(
"d"
))
{
String
username
=
spotlight
.
getName
();
methodCallHelper
.
createDirectMessage
(
username
)
.
onSuccessTask
(
task
->
{
presenter
.
onSpotlightSelected
(
spotlight
);
return
null
;
});
}
else
{
methodCallHelper
.
joinRoom
(
spotlight
.
getId
())
.
onSuccessTask
(
task
->
{
presenter
.
onSpotlightSelected
(
spotlight
);
return
null
;
});
methodCallHelper
.
createDirectMessage
(
username
);
}
methodCallHelper
.
joinRoom
(
spotlight
.
getId
())
.
onSuccessTask
(
task
->
{
presenter
.
onSpotlightSelected
(
spotlight
);
return
null
;
});
}
});
...
...
@@ -304,4 +299,4 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
updateRoomListMode
(
user
);
}
}
}
\ No newline at end of file
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