Skip to content

Commit 536e5d1

Browse files
committed
adds parent id to keystroke
1 parent d562d62 commit 536e5d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/MessageInput/hooks/messageInput.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,13 @@ export default function useMessageInput(props) {
298298
getNewText: () => newText,
299299
});
300300
if (publishTypingEvent && newText && channel) {
301-
logChatPromiseExecution(channel.keystroke(), 'start typing event');
301+
logChatPromiseExecution(
302+
channel.keystroke(parent?.id),
303+
'start typing event',
304+
);
302305
}
303306
},
304-
[channel, publishTypingEvent],
307+
[channel, parent, publishTypingEvent],
305308
);
306309

307310
// Emoji

0 commit comments

Comments
 (0)