Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxAttachmentsCount in AttachmentSelectionDialogFragment not working #4716

Closed
vfilinkovable opened this issue Mar 9, 2023 · 2 comments
Closed
Assignees
Labels
bug Something isn't working sdk-issue Used for issues/bugs opened/reported by customers or us.

Comments

@vfilinkovable
Copy link

Describe the bug
maxAttachmentsCount is not working

SDK version

  • 5.13.0

To Reproduce
Steps to reproduce the behavior:
Create custom button.
Set on click listener to it like this:

binding.attachmentIcon.setOnClickListener {
            childFragmentManager.let {
                AttachmentSelectionDialogFragment.newInstance(
                    MessageInputViewStyle.createDefault(requireContext()).copy(
                        maxAttachmentsCount = 5
                    )
                ).apply { setAttachmentSelectionListener(attachmentSelectionListener) }
                    .show(it, AttachmentSelectionDialogFragment.TAG)
            }
        }

App alow you to select as much attachments as you have (10-20-30)

Expected behavior
Attachments are limited.

Device:

  • Vendor and model: Any
  • Android version: Any
@vfilinkovable vfilinkovable added the bug Something isn't working label Mar 9, 2023
@MarinTolic
Copy link
Contributor

Hi @vfilinkovable ,

Thank you for raising this issue, we will look into it.

@MarinTolic MarinTolic self-assigned this Mar 10, 2023
@filbabic filbabic added the sdk-issue Used for issues/bugs opened/reported by customers or us. label Mar 14, 2023
@DanielNovak
Copy link
Contributor

Closing due to inactivity. This API has changed since then - if the issue still persists, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sdk-issue Used for issues/bugs opened/reported by customers or us.
Projects
None yet
Development

No branches or pull requests

4 participants