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
useActiveTyping hook to observe the changes of typing
- Send 2 or more
typing activity within 2 seconds
Expected behavior
The useActiveTyping hook should return at with the same value.
Additional context
[Bug]
Screenshots
Version
4.15.1Describe the bug
The
useActiveTypingreturns a structure of:The
atfield 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
useActiveTypinghook to observe the changes of typingtypingactivity within 2 secondsExpected behavior
The
useActiveTypinghook should returnatwith the same value.Additional context
[Bug]