From 521af709887a01fbb8fe29d1c8246bc38d42e0eb Mon Sep 17 00:00:00 2001 From: Florian Renaud Date: Tue, 4 Oct 2022 23:55:26 +0200 Subject: [PATCH] Pass VoiceBroadcastState in MessageVoiceBroadcastItem --- .../home/room/detail/timeline/factory/MessageItemFactory.kt | 2 +- .../room/detail/timeline/item/MessageVoiceBroadcastItem.kt | 6 ++---- 2 files changed, 3 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 12fd286054..e7833c2824 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 @@ -719,7 +719,7 @@ class MessageItemFactory @Inject constructor( return MessageVoiceBroadcastItem_() .attributes(attributes) .highlighted(highlight) - .playingState(messageContent.voiceBroadcastStateStr.toEpoxyCharSequence()) + .voiceBroadcastState(messageContent.voiceBroadcastState) .leftGuideline(avatarSizeProvider.leftGuideline) .callback(callback) } diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageVoiceBroadcastItem.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageVoiceBroadcastItem.kt index 0476ea2a93..bd6a5b7bdb 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageVoiceBroadcastItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageVoiceBroadcastItem.kt @@ -25,7 +25,6 @@ import im.vector.app.R import im.vector.app.features.home.room.detail.RoomDetailAction import im.vector.app.features.home.room.detail.timeline.TimelineEventController import im.vector.app.features.voicebroadcast.model.VoiceBroadcastState -import im.vector.lib.core.utils.epoxy.charsequence.EpoxyCharSequence @EpoxyModelClass abstract class MessageVoiceBroadcastItem : AbsMessageItem() { @@ -34,7 +33,7 @@ abstract class MessageVoiceBroadcastItem : AbsMessageItem