InboxSDK
InboxSDK copied to clipboard
Bug: ComposeView.getToRecipients() doesn't work within registerRequestModifier callback
Describe the bug
Calling ComposeView.getToRecipients() during ComposeView.registerRequestModifier callback returns empty result
To Reproduce Steps to reproduce the behavior:
- Start new compose
- Register
registerRequestModifierhandler for composeView - add one or multiple to recipients
- click "send"
- when
registerRequestModifieris called, accesscomposeView.getToRecipients()
Expected behavior
ComposeView.getToRecipients() should return recipients set in the compose To field
Add any other context about the problem here if anything
Initial research lead to believe that during registerRequestModifier invocation, compose view element no longer has recipients chips, but instead has only span elements that are shown when To field is unfocused.