Skip to content

Commit d9bf06f

Browse files
authored
Merge pull request #665 from GetStream/add-parent-id-to-keystroke
adds parent id to keystroke
2 parents d562d62 + 536e5d1 commit d9bf06f

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)