File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Sources/StreamChatSwiftUI/ChatChannel/MessageList Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
3
3
4
4
# Upcoming
5
5
6
- ### 🔄 Changed
6
+ ### 🐞 Fixed
7
+ - Some links not being rendered correctly
7
8
8
9
# [ 4.43.0] ( https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.43.0 )
9
10
_ November 20, 2023_
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ extension MessageTypeResolving {
62
62
}
63
63
64
64
public func hasLinkAttachment( message: ChatMessage ) -> Bool {
65
- !message. linkAttachments. isEmpty
65
+ message. allAttachments. contains ( where: { attachment in
66
+ attachment. type == . linkPreview
67
+ } )
66
68
}
67
69
68
70
public func hasFileAttachment( message: ChatMessage ) -> Bool {
You can’t perform that action at this time.
0 commit comments