Skip to content

Commit 66adfe8

Browse files
committed
Send typing just for DM
1 parent 5c11d2f commit 66adfe8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apple/InlineIOS/Chat/ComposeView.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -605,16 +605,16 @@ extension ComposeView: UITextViewDelegate {
605605
let isEmpty = textView.text.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty
606606
textViewContainer.textView.showPlaceholder(isEmpty)
607607

608-
// Typing Indicators
608+
// Typing Indicators - only for DMs
609609
if isEmpty {
610610
buttonDisappear()
611-
if let peerId {
611+
if let peerId, case .user = peerId {
612612
Task {
613613
await ComposeActions.shared.stoppedTyping(for: peerId)
614614
}
615615
}
616616
} else {
617-
if let peerId {
617+
if let peerId, case .user = peerId {
618618
Task {
619619
await ComposeActions.shared.startedTyping(for: peerId)
620620
}

0 commit comments

Comments
 (0)