Skip to content

Commit

Permalink
Use shorthand param in messageUseMarkdown method
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLord committed Dec 4, 2024
1 parent 479b145 commit 0ff17d4
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 0ff17d4

Please sign in to comment.