Skip to content

Commit e9f7c21

Browse files
committed
fix: ignore own typing events
1 parent 730b2c3 commit e9f7c21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -781,9 +781,10 @@ const ChannelWithContext = <
781781
}
782782

783783
// If the event is typing.start or typing.stop, set the typing state
784-
const isTypingEvent = event.type === 'typing.start' || event.type === 'typing.stop';
785-
if (isTypingEvent) {
786-
setTyping(channel);
784+
if (event.type === 'typing.start' || event.type === 'typing.stop') {
785+
if (event.user?.id !== client.userID) {
786+
setTyping(channel);
787+
}
787788
return;
788789
} else {
789790
if (thread?.id) {

0 commit comments

Comments
 (0)