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
f6753e2f
Commit
f6753e2f
authored
Jul 01, 2018
by
Utkarsh Barsaiyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove @with in UiModelMapper
parent
dfcda352
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
UiModelMapper.kt
...ava/chat/rocket/android/chatroom/uimodel/UiModelMapper.kt
+6
-6
No files found.
app/src/main/java/chat/rocket/android/chatroom/uimodel/UiModelMapper.kt
View file @
f6753e2f
...
...
@@ -13,6 +13,7 @@ import androidx.core.text.buildSpannedString
import
androidx.core.text.color
import
androidx.core.text.scale
import
chat.rocket.android.R
import
chat.rocket.android.app.RocketChatApplication.Companion.context
import
chat.rocket.android.chatroom.domain.MessageReply
import
chat.rocket.android.dagger.scope.PerFragment
import
chat.rocket.android.helper.MessageHelper
...
...
@@ -45,6 +46,8 @@ import kotlinx.coroutines.experimental.CommonPool
import
kotlinx.coroutines.experimental.withContext
import
okhttp3.HttpUrl
import
java.security.InvalidParameterException
import
java.util.*
import
java.util.Collections.emptyList
import
javax.inject.Inject
@PerFragment
...
...
@@ -341,14 +344,11 @@ class UiModelMapper @Inject constructor(
}
private
fun
attachmentText
(
attachment
:
FileAttachment
):
String
?
{
return
with
(
attachment
)
{
return
@with
text
}
return
attachment
.
text
}
private
fun
attachmentDescription
(
attachment
:
FileAttachment
):
String
?
{
return
with
(
attachment
)
{
return
@with
description
}
return
attachment
.
description
}
private
suspend
fun
mapMessage
(
message
:
Message
):
MessageUiModel
=
withContext
(
CommonPool
)
{
...
...
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