Commit Graph

2436 Commits

Author SHA1 Message Date
Matthew Chen 5621fe893c Clean up ahead of PR.
// FREEBIE
2017-10-12 16:23:48 -04:00
Matthew Chen fb408f980c Remove JSQ.
// FREEBIE
2017-10-12 16:23:48 -04:00
Michael Kirk 796be18c56 enable gif picker
// FREEBIE
2017-10-12 14:58:25 -04:00
Michael Kirk dd5a19d1fd Suspend while answering shows "Missed Call"
When awakened by a voip push, we get some arbitrary amount of background
time to connect the call (in practice this is ~30s) before the app is
suspended.

Though we were properly terminating the call upon being suspended, we
were not notifying the user that they had missed a call.

// FREEBIE
2017-10-12 14:34:36 -04:00
Michael Kirk a434a381f7 Merge branch 'hotfix/2.17.1' 2017-10-12 12:54:02 -04:00
Michael Kirk 23b8560b79 sync translations
// FREEBIE
2017-10-12 12:52:34 -04:00
Michael Kirk 2cc59dc166 bump version
// FREEBIE
2017-10-12 12:47:29 -04:00
Matthew Chen 44051bd7e7 Avoid deadlock in profile manager.
// FREEBIE
2017-10-12 12:46:53 -04:00
Michael Kirk 9a7e3cb9d8 Register for manual message fetching when unable to obtain push tokens
// FREEBIE
2017-10-12 12:02:22 -04:00
Michael Kirk df15c904bc Rework push registration
== Account Registration ==

Not complete until push tokens are uploaded

== Remote Notifications Registration ==

Extracted from PushManager

- wait for notification-settings registration to complete before
  requesting push tokens, otherwise it's possible token requests will
  be ignored.

- Less state required for push notification callbacks, specifically, we
  no longer need to ensure we've created a promise before the
  registration delegate methods get called.

- no more TOCFuture in Signal-iOS (still in SSK for now). It's not in
  cases of inexplicable behavior - one a recently, push notification
  premature free, in redphone, and more popular use, and I've seen two
  futures inexplicably being nil.  Instead, let's consolidate around
  PromiseKit for popularly used, maintained, strongly-typed futures.

- separate logic for registering for vanilla push/voip notifications
  (few dependencies) from responding to UILocalNotifications (lots of
  dependencies). Ultimately I'd like to consolidate the remaining
  UILocalNotifications logic with the existing NotificationsManager

== Misc ==

more debug logging
more uniform logging
remove stale logic around newly registered user

// FREEBIE
2017-10-12 12:02:22 -04:00
Matthew Chen b0e1904f96 Respond to CR.
// FREEBIE
2017-10-11 10:03:09 -04:00
Matthew Chen 7923eafe7c Use separate Giphy API key for Signal iOS.
// FREEBIE
2017-10-11 10:00:49 -04:00
Michael Kirk f314b2e50a Fix registration screen layout
// FREEBIE
2017-10-10 16:02:56 -04:00
Michael Kirk b5258be9b5 respond to code review
// FREEBIE
2017-10-10 11:33:40 -04:00
Michael Kirk 876521f4c3 Fetch messages sooner when launched from background
The only reason a notification wakes/launches the app is to fetch
messages.

However, upon launching, especially if the app had been killed, it can
take a second or two before being notified of the notification that woke
us. Rather than wait, just fetch messages ASAP.

// FREEBIE
2017-10-10 11:33:40 -04:00
Michael Kirk c7cfe188ee Sync push tokens on background launch as well
// FREEBIE
2017-10-10 11:33:40 -04:00
Matthew Chen 7d9c2825d8 Add progressive search to Gif picker.
// FREEBIE
2017-10-10 09:51:13 -04:00
Matthew Chen 5999178e78 Remove FLAnimatedImage.
// FREEBIE
2017-10-10 09:50:13 -04:00
Matthew Chen fd28e54132 Respond to CR.
// FREEBIE
2017-10-06 16:26:50 -04:00
Matthew Chen 52a8fb4b88 Add loading background to gif cells, refactor gif cells.
// FREEBIE
2017-10-06 16:25:40 -04:00
Matthew Chen 334396dac6 Add activity indicator, "error", "no results" and retry to gif picker.
// FREEBIE
2017-10-06 16:25:40 -04:00
Matthew Chen 6fb9af6363 Rework gif picker background & giphy logo.
// FREEBIE
2017-10-06 16:25:40 -04:00
Michael Kirk 4c797151e6 Avoid divide by 0 error
Didn't actually see this in the wild - just being defensive.

// FREEBIE
2017-10-05 13:02:39 -04:00
Michael Kirk 3864880a6f CR: ensure view doesn't grow indefinitely
- explicitly mark constraint as required

// FREEBIE
2017-10-05 13:02:39 -04:00
Michael Kirk 3d3af21792 CR: clarify comment, proper linewrap
// FREEBIE
2017-10-05 13:02:39 -04:00
Michael Kirk 580e82beae CR: clamp reasonable aspect ratio
// FREEBIE
2017-10-05 13:02:39 -04:00
Michael Kirk 14b6f31635 position video view below status bar
// FREEBIE
2017-10-05 13:02:38 -04:00
Michael Kirk 15f6135639 Fix AspectRatio on legacy video view
// FREEBIE
2017-10-05 13:02:38 -04:00
Michael Kirk c3dc8508ab pre-PR cleanup
// FREEBIE
2017-10-05 13:02:38 -04:00
Michael Kirk f837a46245 Fix post call crash on iOS8
// FREEBIE
2017-10-05 13:02:38 -04:00
Michael Kirk 39e5875a36 remove overzealous assert 2017-10-05 13:02:38 -04:00
Michael Kirk 2a4e113c82 Cleanup
// FREEBIE
2017-10-05 13:02:38 -04:00
Michael Kirk 9b33bb0b6d fix layout on MetalKit view 2017-10-05 13:02:38 -04:00
Michael Kirk ff2f9ebaf0 fix compiling on 32bit.
// FREEBIE
2017-10-05 13:02:38 -04:00
Michael Kirk f171c56488 Video calls use MetalKit when available
Taking advantage of the new RTCMTLVideoView where available
(64bit && >=iOS9), should help performance (battery and rendering
quality).

// FREEBIE
2017-10-05 13:02:38 -04:00
Michael Kirk 4ab0ae273c pull translations
// FREEBIE
2017-10-04 18:05:28 -04:00
Michael Kirk 7b50a0c7d3 bump build
// FREEBIE
2017-10-04 17:58:27 -04:00
Matthew Chen 380ed0f82b Create & access groups more carefully.
// FREEBIE
2017-10-04 09:45:09 -04:00
Michael Kirk 4e30ec1aef bump build
// FREEBIE
2017-10-03 16:08:59 -04:00
Michael Kirk 7636f41b1a sync translations
(omitted blowing away existing "Submit" translation which was uploaded too recently)

// FREEBIE
2017-10-03 11:21:59 -04:00
Matthew Chen cef1f9186d Fix the scroll down button margins.
// FREEBIE
2017-10-03 11:18:57 -04:00
Michael Kirk b938ec6edf bump build
// FREEBIE
2017-10-03 11:16:50 -04:00
Michael Kirk e22db2adbd Shorter string fits button better on small devices
// FREEBIE
2017-10-02 18:20:23 -04:00
Michael Kirk 6fd6385397 sync translations
// FREEBIE
2017-10-02 17:44:27 -04:00
Michael Kirk d5f8c79336 bump build
// FREEBIE
2017-10-02 17:39:28 -04:00
Matthew Chen 9f5454a4cb Fix the "is contact" test.
// FREEBIE
2017-10-02 17:38:54 -04:00
Matthew Chen 10c00501fd Fix the "is contact" test.
// FREEBIE
2017-10-02 17:38:54 -04:00
Matthew Chen 50ec55c313 Fix the "is contact" test.
// FREEBIE
2017-10-02 17:38:54 -04:00
Michael Kirk ab5b090338 Sync read receipt config to linked devices
// FREEBIE
2017-10-02 16:35:53 -04:00
Matthew Chen 8b7d34e51c Respond to CR.
// FREEBIE
2017-10-02 15:24:57 -04:00