From adbc430ac8d2e8d619ee296d2b086307ec5e8ecb Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Mon, 2 May 2022 10:29:14 +0200 Subject: [PATCH] Renaming userId into locationUserId in message location item --- .../home/room/detail/timeline/factory/MessageItemFactory.kt | 4 ++-- .../home/room/detail/timeline/item/AbsMessageLocationItem.kt | 4 ++-- .../home/room/detail/timeline/item/MessageLiveLocationItem.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/factory/MessageItemFactory.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/factory/MessageItemFactory.kt index 6f22b3eff4..868018a706 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/factory/MessageItemFactory.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/factory/MessageItemFactory.kt @@ -237,14 +237,14 @@ class MessageItemFactory @Inject constructor( urlMapProvider.buildStaticMapUrl(it, INITIAL_MAP_ZOOM_IN_TIMELINE, width, height) } - val userId = if (locationContent.isSelfLocation()) informationData.senderId else null + val locationUserId = if (locationContent.isSelfLocation()) informationData.senderId else null return MessageLocationItem_() .attributes(attributes) .locationUrl(locationUrl) .mapWidth(width) .mapHeight(height) - .userId(userId) + .locationUserId(locationUserId) .locationPinProvider(locationPinProvider) .highlighted(highlight) .leftGuideline(avatarSizeProvider.leftGuideline) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageLocationItem.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageLocationItem.kt index b95fd0f4e1..ad18759fc6 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageLocationItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageLocationItem.kt @@ -41,7 +41,7 @@ abstract class AbsMessageLocationItem : AbsMe var locationUrl: String? = null @EpoxyAttribute - var userId: String? = null + var locationUserId: String? = null @EpoxyAttribute var mapWidth: Int = 0 @@ -89,7 +89,7 @@ abstract class AbsMessageLocationItem : AbsMe target: Target?, dataSource: DataSource?, isFirstResource: Boolean): Boolean { - locationPinProvider?.create(userId) { pinDrawable -> + locationPinProvider?.create(locationUserId) { pinDrawable -> // we are not using Glide since it does not display it correctly when there is no user photo holder.staticMapPinImageView.setImageDrawable(pinDrawable) } diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageLiveLocationItem.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageLiveLocationItem.kt index 741866784a..bbf2ca1348 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageLiveLocationItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageLiveLocationItem.kt @@ -39,7 +39,7 @@ abstract class MessageLiveLocationItem : AbsMessageLocationItem