BotFramework-WebChat
BotFramework-WebChat copied to clipboard
`useActiveTyping` start typing time `at` is not correct
Screenshots
Version
4.15.1
Describe the bug
The useActiveTyping returns a structure of:
interface Typing {
at: number;
expireAt: number;
name: string;
role: 'bot' | 'user';
}
The at field represents the start typing time. However, it is updated whenever typing activity is received. Thus, it is not "start typing" time, but "last typing" time.
Steps to reproduce
- Use the
useActiveTypinghook to observe the changes of typing - Send 2 or more
typingactivity within 2 seconds
Expected behavior
The useActiveTyping hook should return at with the same value.
Additional context
[Bug]