Skip to content

Commit

Permalink
Leftover comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewTurk247 committed Jan 8, 2024
1 parent a1d4251 commit f31375e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Sources/SpeziChat/ChatView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import SwiftUI
/// ```
public struct ChatView: View {
@Binding var chat: Chat
// @Binding var displayTypingIndicator: Bool
var disableInput: Bool
let exportFormat: ChatExportFormat?
let messagePlaceholder: String?
Expand Down Expand Up @@ -134,8 +133,6 @@ public struct ChatView: View {
self.disableInput = disableInput
self.exportFormat = exportFormat
self.messagePlaceholder = messagePlaceholder
self.showShareSheet = false
self.messageInputHeight = 0.0
}
}

Expand Down
2 changes: 2 additions & 0 deletions Sources/SpeziChat/MessageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public struct MessageView: View {
private let chat: ChatEntity
private let hideMessagesWithRoles: Set<ChatEntity.Role>


public var body: some View {
// Compare raw value of `ChatEntity/Role`s as associated values present
if !hideMessagesWithRoles.contains(where: { $0.rawValue == chat.role.rawValue }) {
Expand All @@ -66,6 +67,7 @@ public struct MessageView: View {
}
}


#Preview {
ScrollView {
VStack {
Expand Down

0 comments on commit f31375e

Please sign in to comment.