Skip to content

Commit

Permalink
Merge pull request #116 from FireLord/main
Browse files Browse the repository at this point in the history
Use shorthand param in messageUseMarkdown method
  • Loading branch information
f3dm76 authored Dec 4, 2024
2 parents 479b145 + 0ff17d4 commit bd4d757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Example/ChatExample/Screens/ChatExampleView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct ChatExampleView: View {
.enableLoadMore(pageSize: 3) { message in
viewModel.loadMoreMessage(before: message)
}
.messageUseMarkdown(messageUseMarkdown: true)
.messageUseMarkdown(true)
.setRecorderSettings(recorderSettings)
.navigationBarBackButtonHidden()
.toolbar {
Expand Down
2 changes: 1 addition & 1 deletion Sources/ExyteChat/ChatView/ChatView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ public extension ChatView {
return view
}

func messageUseMarkdown(messageUseMarkdown: Bool) -> ChatView {
func messageUseMarkdown(_ messageUseMarkdown: Bool) -> ChatView {
var view = self
view.messageUseMarkdown = messageUseMarkdown
return view
Expand Down

0 comments on commit bd4d757

Please sign in to comment.