Skip to content

useActiveTyping start typing time at is not correct #4209

Description

@compulim

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.customer-reportedRequired for internal Azure reporting. Do not delete.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions