mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 03:16:02 +03:00
Use interface field
This commit is contained in:
parent
0d02a197a5
commit
7f70a03f41
2 changed files with 4 additions and 4 deletions
|
@ -142,7 +142,7 @@ internal class DefaultSendService @AssistedInject constructor(
|
||||||
// The image has not yet been sent
|
// The image has not yet been sent
|
||||||
val attachmentData = ContentAttachmentData(
|
val attachmentData = ContentAttachmentData(
|
||||||
size = messageContent.info!!.size,
|
size = messageContent.info!!.size,
|
||||||
mimeType = messageContent.info.mimeType!!,
|
mimeType = messageContent.mimeType,
|
||||||
width = messageContent.info.width.toLong(),
|
width = messageContent.info.width.toLong(),
|
||||||
height = messageContent.info.height.toLong(),
|
height = messageContent.info.height.toLong(),
|
||||||
name = messageContent.body,
|
name = messageContent.body,
|
||||||
|
@ -169,7 +169,7 @@ internal class DefaultSendService @AssistedInject constructor(
|
||||||
is MessageFileContent -> {
|
is MessageFileContent -> {
|
||||||
val attachmentData = ContentAttachmentData(
|
val attachmentData = ContentAttachmentData(
|
||||||
size = messageContent.info!!.size,
|
size = messageContent.info!!.size,
|
||||||
mimeType = messageContent.info.mimeType!!,
|
mimeType = messageContent.mimeType,
|
||||||
name = messageContent.getFileName(),
|
name = messageContent.getFileName(),
|
||||||
queryUri = Uri.parse(messageContent.url),
|
queryUri = Uri.parse(messageContent.url),
|
||||||
type = ContentAttachmentData.Type.FILE
|
type = ContentAttachmentData.Type.FILE
|
||||||
|
@ -181,7 +181,7 @@ internal class DefaultSendService @AssistedInject constructor(
|
||||||
val attachmentData = ContentAttachmentData(
|
val attachmentData = ContentAttachmentData(
|
||||||
size = messageContent.audioInfo?.size ?: 0,
|
size = messageContent.audioInfo?.size ?: 0,
|
||||||
duration = messageContent.audioInfo?.duration?.toLong() ?: 0L,
|
duration = messageContent.audioInfo?.duration?.toLong() ?: 0L,
|
||||||
mimeType = messageContent.audioInfo?.mimeType,
|
mimeType = messageContent.mimeType,
|
||||||
name = messageContent.body,
|
name = messageContent.body,
|
||||||
queryUri = Uri.parse(messageContent.url),
|
queryUri = Uri.parse(messageContent.url),
|
||||||
type = ContentAttachmentData.Type.AUDIO
|
type = ContentAttachmentData.Type.AUDIO
|
||||||
|
|
|
@ -314,7 +314,7 @@ class MessageItemFactory @Inject constructor(
|
||||||
.leftGuideline(avatarSizeProvider.leftGuideline)
|
.leftGuideline(avatarSizeProvider.leftGuideline)
|
||||||
.imageContentRenderer(imageContentRenderer)
|
.imageContentRenderer(imageContentRenderer)
|
||||||
.contentUploadStateTrackerBinder(contentUploadStateTrackerBinder)
|
.contentUploadStateTrackerBinder(contentUploadStateTrackerBinder)
|
||||||
.playable(messageContent.info?.mimeType == MimeTypes.Gif)
|
.playable(messageContent.mimeType == MimeTypes.Gif)
|
||||||
.highlighted(highlight)
|
.highlighted(highlight)
|
||||||
.mediaData(data)
|
.mediaData(data)
|
||||||
.apply {
|
.apply {
|
||||||
|
|
Loading…
Reference in a new issue