mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
Renaming message item factory
This commit is contained in:
parent
d89d6bc162
commit
68a44c4cc7
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ import org.matrix.android.sdk.api.session.room.model.message.LocationInfo
|
|||
import java.time.LocalDateTime
|
||||
import javax.inject.Inject
|
||||
|
||||
class LiveLocationMessageItemFactory @Inject constructor(
|
||||
class LiveLocationShareMessageItemFactory @Inject constructor(
|
||||
private val dimensionConverter: DimensionConverter,
|
||||
private val timelineMediaSizeProvider: TimelineMediaSizeProvider,
|
||||
private val avatarSizeProvider: AvatarSizeProvider,
|
|
@ -148,7 +148,7 @@ class MessageItemFactory @Inject constructor(
|
|||
private val locationPinProvider: LocationPinProvider,
|
||||
private val vectorPreferences: VectorPreferences,
|
||||
private val urlMapProvider: UrlMapProvider,
|
||||
private val liveLocationMessageItemFactory: LiveLocationMessageItemFactory,
|
||||
private val liveLocationShareMessageItemFactory: LiveLocationShareMessageItemFactory,
|
||||
) {
|
||||
|
||||
// TODO inject this properly?
|
||||
|
@ -216,7 +216,7 @@ class MessageItemFactory @Inject constructor(
|
|||
buildMessageTextItem(messageContent.body, false, informationData, highlight, callback, attributes)
|
||||
}
|
||||
}
|
||||
is MessageBeaconInfoContent -> liveLocationMessageItemFactory.create(informationData.liveLocationShareSummaryData, highlight, attributes)
|
||||
is MessageBeaconInfoContent -> liveLocationShareMessageItemFactory.create(informationData.liveLocationShareSummaryData, highlight, attributes)
|
||||
else -> buildNotHandledMessageItem(messageContent, informationData, highlight, callback, attributes)
|
||||
}
|
||||
return messageItem?.apply {
|
||||
|
|
Loading…
Reference in a new issue