Commit Graph

430 Commits

Author SHA1 Message Date
Matthew Chen
2fca71e380 Fix build warnings. 2020-04-08 16:05:54 -03:00
Matthew Chen
e198261fa1 Respond to CR. 2020-04-07 14:02:27 -03:00
Matthew Chen
299552d1a5 Remove YDB from views. 2020-04-07 13:51:02 -03:00
Matthew Chen
d2b713849e Remove YDB from views. 2020-04-07 13:51:02 -03:00
Matthew Chen
dd42dcca49 Remove YDB from views. 2020-04-07 13:51:02 -03:00
Matthew Chen
94d4ff7dff Convert conversation settings view to Swift. 2020-04-02 13:11:53 -03:00
Nora Trapp
6a39e3d174 Sync archived status with storage service 2020-03-24 17:11:02 -07:00
Michael Kirk
f927ef1b4b Batch Select / Delete 2020-03-20 19:36:48 -07:00
Matthew Chen
4440a75a43 Respond to CR. 2020-03-17 11:13:22 -03:00
Matthew Chen
3e58725656 Sketch out revised "new group" view. 2020-03-17 10:31:20 -03:00
Matthew Chen
e097239dcd Sketch out revised "new group" view. 2020-03-17 10:31:20 -03:00
Nora Trapp
4ad7479ff9 Use new accent blue color everywhere except launch screen related views 2020-03-04 10:00:55 -08:00
Nora Trapp
aa8a782194 Update launch screen to use new logo and have dark mode variant 2020-03-04 10:00:54 -08:00
Nora Trapp
9be7f6f4f1 Show drafts on the conversation list 2020-03-02 10:59:09 -08:00
Matthew Chen
caa101beab Merge remote-tracking branch 'private/release/3.5.0' into release/3.6.0 2020-02-27 13:52:43 -03:00
Nora Trapp
672b2efb61 Keep track of who added us to a group so we can show it in message requests 2020-02-25 12:47:03 -07:00
Michael Kirk
f198d9037d Merge tag '3.5.0.5' 2020-02-19 19:26:05 -07:00
Michael Kirk
0a5c4ef08f cleanup error messages 2020-02-18 15:37:17 -07:00
Michael Kirk
5a081bd1c4 cvc init rather than configureWithThread 2020-02-17 16:26:32 -07:00
Michael Kirk
3bb38ddb99 swift friendly notification rename 2020-02-16 13:13:12 -07:00
Michael Kirk
df401ab8be remove cameraFirstCaptureFlow feature flag 2020-02-12 15:19:56 -07:00
Michael Kirk
c62205cb75 remove sticker feature flags 2020-02-12 15:19:56 -07:00
Nora Trapp
cfd7983576 Update the conversation list when the profile whitelist changes. 2020-02-11 18:54:10 -08:00
Nora Trapp
70d948843f Remote FF for message requests 2020-02-11 18:27:46 -08:00
Nora Trapp
977b470609 Fix crash when tapping notification (hopefully) 2020-02-06 14:41:30 -08:00
Matthew Chen
647fb3a33f Rework "leave group", consolidate group update logic. Add groups v2 indicator. 2020-02-06 11:11:22 -03:00
Matthew Chen
ea2e5f9e8d Merge tag '3.3.0.6' 2020-01-30 20:13:47 -08:00
Nora Trapp
b13f79fb38 Fix pull to refresh on compose view 2020-01-30 20:13:25 -08:00
Nora Trapp
bdfc5ee5da Only show experience upgrades when the app becomes active 2020-01-30 20:13:18 -08:00
Nora Trapp
8cef37fb1e PINs for everyone megaphone 2020-01-30 20:11:08 -08:00
Nora Trapp
d0e2a3f200 Prepare ExperienceUpgrade for megaphones. 2020-01-30 20:10:35 -08:00
Nora Trapp
88ac10de05 Notification Service Extension
The NSE should only run on iOS 13.3 or later where the "filtering" entitlement
is available since our notifications don't contain any content and will often
not trigger any user visible content. We control this by setting the deployment
target to iOS 13.3.

This does not handle calls as it's currently impossible to wake the main app or
launch CallKit from within the NSE. Should we reach a point where we need to use
this extension in production the service will need to be able to differentiate
between call and non-call messages and deliver them as VOIP or Vanilla pushes as
appropriate. Alternatively, Apple may introduce some way for us to signal the
main app that a call message has been received.

This does not currently address the potential for the NSE and the main app to be
running and trying to process messages at the same time. As long as the
websocket is connected and the main app is processing messages in a timely
fashion the NSE will never be called since the service will not send pushes for
these messages, but censorship circumvention users and users where the websocket
is disconnected for some reason will legitimately receive pushes and we will
want to process those messages. How we will handle these cases requires further
thought since just terminating the NSE when the app launches is not sufficient.
We could potentially do something like terminate the NSE everytime the main app
runs the message fetcher job which should only happen if either the user
pulls-to-refresh on the conversation list or the websocket is actively connected
and receiving messsages. I plan to address this in a follow-up pull request.

Currently this code will not ever be run since the service never sends vanilla
push notifications. Eventually we will need to add logic into the main app to:
a) detect we're on iOS 13.3 or later and b) update a flag on the service telling
it to stop using VOIP pushes for non-call messages. The API for requesting this
from the service does not yet exist.
2020-01-30 11:44:41 -08:00
Matthew Chen
963525bd59 Merge tag '3.3.0.6' 2020-01-28 12:45:02 -03:00
Nora Trapp
4bf6ac1ca1 Only show experience upgrades when the app becomes active 2020-01-27 14:34:03 -08:00
Nora Trapp
36b0383241 Fix pull to refresh on compose view 2020-01-27 11:03:46 -08:00
Matthew Chen
993dca8ec9 Remove redundant NotificationName. 2020-01-27 10:53:23 -03:00
Matthew Chen
bcfba85356 Add message processing class.
* Modify message processing to allow observation of websocket queue being drained.
* Extend MessageProcessing to allow observation of REST message fetching and "all message fetching and processing".
2020-01-27 10:42:03 -03:00
Nora Trapp
725baf772f PINs for everyone megaphone 2020-01-24 13:43:35 -08:00
Nora Trapp
b1c913e810 Prepare ExperienceUpgrade for megaphones. 2020-01-23 08:59:22 -08:00
Matthew Chen
26ecb2b371 Rewrite queue to process incoming group v2 messages. 2020-01-23 12:00:42 -03:00
Matthew Chen
976fd5dfb8 Cache user profiles and signal accounts. 2020-01-16 16:52:25 -03:00
Nora Trapp
a8d533b75c Fix a bug where deleting a group would not update the UI 2020-01-10 16:41:56 -08:00
Nora Trapp
4d55468bd3 Merge branch 'release/3.2.0' 2020-01-02 16:50:14 -08:00
Nora Trapp
b922da74a4 Fix top/bottom margin on conversation list cell 2020-01-02 16:29:10 -08:00
Michael Kirk
fc5aad99ef use bench 2019-12-31 14:25:24 -08:00
Michael Kirk
1448635cac Fix broken layout after becoming active in landscape photo capture
repro:

1. screen protection enabled
2. phone in portrait
3. tap camera first capture
4. rotate phone to landscape
5. drag down systems notifications view
6. return to app
7. capture screen has the wrong orientation
7. sometimes capture screen has the wrong dimensions (portrait length applied to landscape side)

The issue is related to our screenlock window juggling. We typically enforce
orientation based on the main windows rootViewController orientation mask.
Previously this was almost always an OWSNavigationController which would
delegate its calls to one to a nav delegate or one of it's children view controllers.

We lost this when we switched to having the ConversationSplitViewController be our rootViewController
2019-12-18 10:59:36 -08:00
Nora Trapp
801876d865 Fix Xcode 11 issues while not making Xcode 11 mandatory yet 2019-12-14 21:03:09 -08:00
Matthew Chen
5087a1f50a Respond to CR. 2019-12-13 14:07:32 -03:00
Nora Trapp
c30bb49cf9 Merge branch 'release/3.0.4' 2019-12-05 15:26:31 -08:00
Nora Trapp
e2e73b4d3a Fix some accessibility labels 2019-12-05 15:15:51 -08:00