MSMessage delegate didStartSending: passes nil MSMessage for attachment
Originator: | matthewaherz | ||
Number: | rdar://27993685 | Date Originated: | 8/24/16 |
Status: | Open | Resolved: | |
Product: | Messages | Product Version: | iOS 10 |
Classification: | Reproducible: |
Using Swift, following the IceCreamBuilder code example, if I insert an attachment in a conversation, it triggers the didStartSending: callback with a nil MSMessage override func didStartSending(_ message: MSMessage, conversation: MSConversation) { super.didStartSending(message, conversation: conversation) // Called when the user taps the send button. var startSendingMsg: MSMessage? = message if message != nil { print("^^ did send message \(message)") } // interact with startSendingMsg } Steps to Reproduce: In Swift: Override didStartSending: method Insert attachment into conversation Send attachment didStartSending: triggers with a nil MSMessage though its type is nonnullable Expected Results: MSMessage type should be MSMessage? or allow MSMessage to include an attachment Actual Results: MSMessage is nil Version: iOS 10 xcode beta 6 Notes: Configuration: iOS 10
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!