MSMessagesAppViewController.didSelect(message:conversation:) not called when user selects already selected message

Originator:modalrealist
Number:rdar://27621637 Date Originated:29-Jul-2016
Status:Open Resolved:
Product:iPhone 5 Product Version:iOS 10 beta 3
Classification:Bug Reproducible:Always
 
Summary:
An instance of MSMessagesAppViewController does not call willSelect(message:conversation:) or didSelect(message:conversation:) when a user taps a message that is already selected. This makes it impossible to programmatically detect the difference between a messages app entering expanded presentation style because the user tapped a message or because the user tapped the expand presentation style control.

Steps to Reproduce:
1. Run attached IceCreamBuilder Messages App in debug mode (edited to print to console when .willSelect() and .didSelect() are called).
2. Build a new ice cream.
3. Send new ice cream in a message.
(.willSelect(message:conversation:) and .didSelect(message:conversation:) are both called here with a nil message that crashes if you try to access it, but I filed a separate bug report for that: 27621557)
4. Tap ice cream message.

Expected Results:
.willSelect(message:conversation:) and .didSelect(message:conversation:) should be called and print to console.

Actual Results:
Neither willSelect(message:conversation:) nor .didSelect(message:conversation:) are called.

Version:
iOS 10 beta 3

Notes:


Configuration:
iPhone 5

Attachments:
'IceCreamBuilderAsimpleMessagesappextension.zip' was successfully uploaded.

Comments

Duped as rdar://28158453


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!