From e1b6f4bd74b89ce0839bb116e3ee0af06cd7a79f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 1 Jul 2019 12:43:11 +0200 Subject: [PATCH] Fix issue after rebase --- .../features/home/room/list/RoomSummaryItemFactory.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/riotredesign/features/home/room/list/RoomSummaryItemFactory.kt b/vector/src/main/java/im/vector/riotredesign/features/home/room/list/RoomSummaryItemFactory.kt index fe66a0d7..6095089a 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/home/room/list/RoomSummaryItemFactory.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/home/room/list/RoomSummaryItemFactory.kt @@ -24,6 +24,7 @@ import im.vector.riotredesign.R import im.vector.riotredesign.core.extensions.localDateTime import im.vector.riotredesign.core.resources.ColorProvider import im.vector.riotredesign.core.resources.DateProvider +import im.vector.riotredesign.features.home.AvatarRenderer import im.vector.riotredesign.features.home.room.detail.timeline.format.NoticeEventFormatter import im.vector.riotredesign.features.home.room.detail.timeline.helper.TimelineDateFormatter import im.vector.riotredesign.features.home.room.detail.timeline.helper.senderName @@ -32,7 +33,8 @@ import javax.inject.Inject class RoomSummaryItemFactory @Inject constructor(private val noticeEventFormatter: NoticeEventFormatter, private val timelineDateFormatter: TimelineDateFormatter, - private val colorProvider: ColorProvider) { + private val colorProvider: ColorProvider, + private val avatarRenderer: AvatarRenderer) { fun create(roomSummary: RoomSummary, onRoomSelected: (RoomSummary) -> Unit): RoomSummaryItem { val unreadCount = roomSummary.notificationCount @@ -74,6 +76,7 @@ class RoomSummaryItemFactory @Inject constructor(private val noticeEventFormatte } return RoomSummaryItem_() .id(roomSummary.roomId) + .avatarRenderer(avatarRenderer) .roomId(roomSummary.roomId) .lastEventTime(latestEventTime) .lastFormattedEvent(latestFormattedEvent)