You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/ui/component/MessageInfoComponentFactory.kt
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -189,11 +189,13 @@ private fun MessageInfoContent(
189
189
items = reads,
190
190
labelResId =R.string.message_info_read_by,
191
191
skipTopPadding =true,
192
+
getDate =ChannelUserRead::lastRead
192
193
)
193
194
// Delivered to section
194
195
section(
195
196
items = deliveredReads,
196
197
labelResId =R.string.message_info_delivered_to,
198
+
getDate =ChannelUserRead::lastDeliveredAt
197
199
)
198
200
}
199
201
}
@@ -202,6 +204,7 @@ private fun LazyListScope.section(
202
204
items:List<ChannelUserRead>,
203
205
@StringRes labelResId:Int,
204
206
skipTopPadding:Boolean = false,
207
+
getDate: (ChannelUserRead) ->Date?,
205
208
) {
206
209
if (items.isNotEmpty()) {
207
210
item {
@@ -226,7 +229,10 @@ private fun LazyListScope.section(
226
229
index = index,
227
230
lastIndex = items.lastIndex,
228
231
) {
229
-
ReadItem(userRead = item)
232
+
ReadItem(
233
+
userRead = item,
234
+
getDate = getDate,
235
+
)
230
236
}
231
237
}
232
238
}
@@ -235,6 +241,7 @@ private fun LazyListScope.section(
0 commit comments