microsoft / microsoft/BotFramework-WebChat
`useActiveTyping` start typing time `at` is not correct
Open
Nobody has claimed this yet.
Bot Services
bug
customer-reported
- Dominant language
- HTML
- Stars
- 1.8k
- Forks
- 1.6k
- Avg merge
- 22h 58m
- Merged PRs (30d)
- 2
Description
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]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the useActiveTyping hook and reproduce the issue by sending two or more typing activities within two seconds. It is done when the returned at value remains the initial typing timestamp while subsequent activity still updates the typing state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100