Skip to content

Commit

Permalink
Fixed some links not being rendered correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski committed Nov 21, 2023
1 parent 3e6b647 commit 862d162
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

# Upcoming

### 🔄 Changed
### 🐞 Fixed
- Some links not being rendered correctly

# [4.43.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.43.0)
_November 20, 2023_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ extension MessageTypeResolving {
}

public func hasLinkAttachment(message: ChatMessage) -> Bool {
!message.linkAttachments.isEmpty
message.allAttachments.contains(where: { attachment in
attachment.type == .linkPreview
})
}

public func hasFileAttachment(message: ChatMessage) -> Bool {
Expand Down

0 comments on commit 862d162

Please sign in to comment.