Skip to content

MessageAttachmentsContent used for forward and sharing feature #6024

@geolyth

Description

@geolyth

Describe the bug
I'm using MessageAttachmentsContent to render the UI previews for all types of files (audio, image, video) in a ModalBottomSheet (for forward and sharing from outside of the app) but if the user click on Play on the audio and then close the ModalBottomSheet the player continue to play.
I am not able to find a callback to properly handle the stop/destroy/pause the player itself.
I also see that seems the instance of the MessageAttachmentsContent is shared by the MessagesScreen but I wanted a new instance.

SDK version

  • 6.28.0

To Reproduce
Steps to reproduce the behavior:

  1. Click on an audio message and try to forward that one using a ModalBottomSheet that contains MessageAttachmentsContent to render the preview of the file
  2. Click Play on the Player
  3. Close the ModalBottomSheet
  4. The audio continue to play

Expected behavior
Player should be paused/destroyed/stopped using a callback to handle the behaviour.

Device:

  • Vendor and model: Any
  • Android version: Any

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions