Commit Graph

7 Commits (254e5b4f7fb72d49a59cf1a11b5413605a7d6069)

Author SHA1 Message Date
Michael Kirk 30266bf65e autoformatted 6 years ago
Michael Kirk 64a0c4bfaa auto-migrate to Swift5 6 years ago
Matthew Chen 0e749d5521 Fix build break. 7 years ago
Matthew Chen 4b213df950 Fix race in ProximityMonitoringManager. 7 years ago
Michael Kirk 0d7e94f2f6 Fix: Voice Messages don't restore audio to speaker when held up to the ear past
the voice notes duration.

Specifically:

- start a voice note
- hold to ear until complete
- remove from ear
- start another voice note (or the same one) with the phone away from your ear

You'd expect audio to play through the external speaker, but instead it comes
through the earpiece.

Based on the added logging, this seems to be an apple bug.
7 years ago
Michael Kirk 6968dbab17 Update UIDevice on main thread 7 years ago
Michael Kirk 5632bd2d83 Use reference counting to disable proximity monitoring after audio message
Multiple overlapping activities require proximity monitoring (namely,
CallViewController and listening to audio messages).

These activities can overlap arbitrarily, so we use a reference counting
strategy to keep proximity monitoring on as long as one of these activities is
active.
7 years ago