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
7332dc06
Commit
7332dc06
authored
Jul 19, 2018
by
Lucio Maciel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment (and force rebuild)
parent
d5076c22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
ChatRoomsPresenter.kt
...cket/android/chatrooms/presentation/ChatRoomsPresenter.kt
+5
-6
No files found.
app/src/main/java/chat/rocket/android/chatrooms/presentation/ChatRoomsPresenter.kt
View file @
7332dc06
...
@@ -84,11 +84,7 @@ class ChatRoomsPresenter @Inject constructor(
...
@@ -84,11 +84,7 @@ class ChatRoomsPresenter @Inject constructor(
view
.
showMessage
(
R
.
string
.
msg_generic_error
)
view
.
showMessage
(
R
.
string
.
msg_generic_error
)
}
else
{
}
else
{
val
id
=
if
(
isDirectMessage
&&
!
open
)
{
val
id
=
if
(
isDirectMessage
&&
!
open
)
{
val
fromTo
=
mutableListOf
(
myself
.
id
,
id
).
apply
{
// If from local database, we already have the roomId, no need to concatenate
sort
()
}
val
roomId
=
fromTo
.
joinToString
(
""
)
if
(
local
)
{
if
(
local
)
{
retryIO
{
retryIO
{
client
.
show
(
id
,
roomTypeOf
(
RoomType
.
DIRECT_MESSAGE
))
client
.
show
(
id
,
roomTypeOf
(
RoomType
.
DIRECT_MESSAGE
))
...
@@ -100,7 +96,10 @@ class ChatRoomsPresenter @Inject constructor(
...
@@ -100,7 +96,10 @@ class ChatRoomsPresenter @Inject constructor(
createDirectMessage
(
name
)
createDirectMessage
(
name
)
}
}
}
}
roomId
val
fromTo
=
mutableListOf
(
myself
.
id
,
id
).
apply
{
sort
()
}
fromTo
.
joinToString
(
""
)
}
}
}
else
{
}
else
{
id
id
...
...
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