Skip to content

Advanced Example crashes when typing indicator is hidden #1787

@laud

Description

@laud

👻
Describe the bug
Advanced Example crashes when typing indicator is hidden

To Reproduce
Steps/code to reproduce the behavior:

  1. Open the example app
  2. Navigate to Advanced Example
  3. Typing indicator shows. Upon indicator hide, the app crashes.

Expected behavior
The indicator should not crash on hide.

Screenshots
Screen Shot 2023-04-10 at 4 23 57 PM

Environment

  • What version of MessageKit are you using? latest commit
  • What version of iOS are you running on? iOS 16.4.1
  • What version of Swift are you running on? Swift 5.8
  • What device(s) are you testing on? Are these simulators? On Device
  • Is the issue you're experiencing reproducible in the example app? Yes, it crashes on the example app

Additional context
Add any other context about the problem here.
The problem is partially solved when animation is set to false. However, other cases of the app crashing due to improper index still occurs (e.g. sending a message when indicator is visible).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions