This fixes an issue where some emojis in the emoji reaction picker are
truncated and replaced with an ellipsis.
This only occurs on certain devices and I haven't been able to repro in
the simulator. A couple devices I've seen this occur on:
- iPhone X running iOS 13.6 and 13.7
- iPhone SE 2 running iOS 14b5
The issue has something to do with the typographic box for certain emoji
glyphs having a slightly larger size than most other emojis. The actual
glyph seems to have the same size. Many of the broken emojis have a ZWJ,
but there are some correctly sized emojis that also have a ZWJ.
The emojis that I've used for testing are:
- 👩🦰 (Woman + ZWJ + Red Hair)
Typographic size: 36.00x38.19. Image glyph size: 32.00x32.00
- 👱♀️ (Blond person + ZWJ + Female)
Typographic size: 40.00x38.19. Image glyph size: 32.00x32.00
To workaround this, we set the line break mode on the emoji label to
clip. On devices that don't have this issue, nothing changes. On devices
that do have this issue, we end up clipping a bit of the typographic
rect. In testing, it seems that we never end up clipping the actual
glyph image. But even if we do, it's at least better than truncating.
This is now pretty close to the design spec. Most significant change
here is adding a new stack view configuration joining the title and the
thumbnail, both floating above description text.
Make sure the background view controller is showing by presenting the camera capture over full screen context.
Remove swipe speed as a dismiss trigger -- it was too easy to accidentlly dismiss the camera capture view. If you're in the camera you don't want quick swipe to dimiss the view and maybe miss what you wanted to take a photo of.
Constaint dismiss animation to vertical and only dismiss downwards. Tweak the distance required to drag to enage the dismiss action.
This fixes an issue where we'd incorrectly construct a quoted message
body for shared contacts.
This also fixes an issue where ConversationViewItems would incorrectly
OWSAssertDebug on a body-less message (e.g. sending an image).