Skip to content

Commit 71725d3

Browse files
Changed access to thread participants in MessageRepliesView
1 parent 97a328d commit 71725d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageRepliesView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ struct MessageRepliesView<Factory: ViewFactory>: View {
2828
HStack {
2929
if !message.isSentByCurrentUser {
3030
MessageAvatarView(
31-
avatarURL: message.threadParticipants[0].imageURL,
31+
avatarURL: message.threadParticipants.first?.imageURL,
3232
size: .init(width: 16, height: 16)
3333
)
3434
}
3535
Text("\(replyCount) \(repliesText)")
3636
.font(fonts.footnoteBold)
3737
if message.isSentByCurrentUser {
3838
MessageAvatarView(
39-
avatarURL: message.threadParticipants[0].imageURL,
39+
avatarURL: message.threadParticipants.first?.imageURL,
4040
size: .init(width: 16, height: 16)
4141
)
4242
}

0 commit comments

Comments
 (0)