BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

`useActiveTyping` start typing time `at` is not correct

Open compulim opened this issue 3 years ago • 0 comments

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

  1. Use the useActiveTyping hook to observe the changes of typing
  2. Send 2 or more typing activity within 2 seconds

Expected behavior

The useActiveTyping hook should return at with the same value.

Additional context

[Bug]

compulim avatar Mar 23 '22 19:03 compulim