Commit Graph

828 Commits

Author SHA1 Message Date
Nora Trapp
1bc6da36fe PR Feedback 2020-11-05 12:25:49 -08:00
Matthew Chen
bcc7995a7b Migrate groups from v1 to v2, part 3.
* Pull out GroupMigrationActionSheet.
* Add group migration action sheets.
* Make changes to enable testing migrations.
* Rewrite banners in Swift.
* Refine group migration logic; add support for testability.
2020-10-30 09:06:40 -03:00
Matthew Chen
a66f2cfc56 Migrate groups from v1 to v2, part 2.
* Add legacy group upgrade action sheet.
* Add 'group update info messages' around migrations.
* Add new limits around group size.
* Rename migration modes to "manual", "auto-migration."
* Add legacy groups action sheets.
* Try to fill in missing UUIDs before migrating groups.
* Ignore "known unregistered" users during group migrations.
2020-10-30 09:05:13 -03:00
Nora Trapp
17892d716c Group Calling 2020-10-15 14:49:20 -07:00
Matthew Chen
de405a2470 Update feature flags and remote config for v3.20. 2020-10-15 14:06:56 -03:00
Matthew Chen
3be512b648 Fix issues around large type in conversation settings. 2020-10-15 13:58:46 -03:00
Matthew Chen
05eb881632 Avoid assert around gif stickers. 2020-10-15 13:57:39 -03:00
Matthew Chen
096ed67bb9 Convert font style convenience methods to properties. 2020-10-06 13:09:45 -03:00
Nora Trapp
6ca4bfeff9 Add backwards compatible support for new photo library APIs 2020-10-05 14:32:07 -07:00
Nora Trapp
413aa689f0 Fix compilation with Xcode 12 2020-10-05 14:32:06 -07:00
Matthew Chen
7b21df6036 Merge branch 'release/3.18.0' 2020-10-01 21:12:18 -03:00
Nora Trapp
1acebc947f PR Feedback 2020-10-01 11:37:00 -07:00
Nora Trapp
abf556fb7a Fix select photos dialog when screen security is enabled. Fixes #4569 2020-10-01 11:37:00 -07:00
Nora Trapp
9f667b55a5 Fix mute button on CallKit screen in iOS 14. Fixes #4567 2020-10-01 11:37:00 -07:00
Matthew Chen
1470557610 Merge branch 'release/3.18.0' 2020-09-29 18:33:50 -03:00
Nora Trapp
bfada1c784 Fix action sheet max-width on smaller displays 2020-09-29 11:35:56 -07:00
Matthew Chen
3480af38e4 Fix build warnings. 2020-09-25 15:16:19 -03:00
Nora Trapp
9e958ca972 PR Feedback 2020-09-23 15:04:48 -07:00
Fumiaki Yoshimatsu
7cae74e432 Increase the vertical insets of placeholders and text inputs to keep them vertically aligned when the system is set to use smaller font and it contains only a line of text. Fixes #4273 2020-09-23 14:54:23 -07:00
Matthew Chen
686aee752c Rename OWSMessageSender -> MessageSender. 2020-09-17 21:35:35 -03:00
Matthew Chen
7befd00429 Rewrite linked devices view. 2020-09-17 21:26:09 -03:00
Matthew Chen
d188e403e1 Rewrite linked devices view. 2020-09-17 21:26:06 -03:00
Matthew Chen
ca6203b44f Reduce modal activity indicator display delay. 2020-09-17 21:25:03 -03:00
Matthew Chen
c6f3f8eba6 Fix rebase breakage. 2020-09-17 21:18:35 -03:00
Matthew Chen
66510bc18f DRY singleton accessors. 2020-09-17 21:13:14 -03:00
Matthew Chen
239fbbc8ba DRY singleton accessors. 2020-09-17 21:13:14 -03:00
Matthew Chen
8c50ffcc30 Rename singleton accessors. 2020-09-17 21:13:12 -03:00
Matthew Chen
819321e4ef Rename singleton accessors. 2020-09-17 21:11:09 -03:00
Matthew Chen
c017e76aab Rename singleton accessors. 2020-09-17 21:11:09 -03:00
Matthew Chen
ad6bda8a44 Rename singleton accessors. 2020-09-17 21:11:07 -03:00
Nora Trapp
0c50994da5 Fix text approval view keyboard animation 2020-09-09 14:50:31 -07:00
Nora Trapp
e0e784e9ce Fix ordering of pinned threads when sharing 2020-09-08 19:59:16 -07:00
Nora Trapp
f67bffd637 Add link preview support to share extension and forwarding 2020-09-08 19:58:29 -07:00
Nora Trapp
7da0a9fc66 Sort pinned threads to the top of the 'recent items' section when sharing 2020-09-04 15:27:09 -07:00
Matthew Chen
1f01bc709e Apply design updates to group links UI. 2020-09-03 18:33:43 -03:00
Matthew Chen
c464a2efac Respond to CR. 2020-09-02 17:14:52 -03:00
Matthew Chen
2d8d52c7e9 Allow user to cancel attachment preparation in the send media flow. 2020-09-02 17:05:14 -03:00
Matthew Chen
7d4db98ccb Reduce sticker change event frequency. 2020-09-02 16:33:35 -03:00
Matthew Chen
dcb4d09269 Fix de-bouncing of sticker pack data source change events. 2020-09-02 16:32:22 -03:00
Matthew Chen
4841a9eefb Add possible support for animated lottie, webp, apng. 2020-09-02 13:44:14 -03:00
Matthew Chen
95c52e21b6 Add support for animated stickers. 2020-09-02 13:44:14 -03:00
Matthew Chen
a7aeba72b4 Add support for animated stickers. 2020-09-02 13:44:13 -03:00
Matthew Chen
fc47aa83b4 Add support for animated stickers. 2020-09-02 13:44:13 -03:00
Matthew Chen
1708087a76 Add support for animated stickers. 2020-09-02 13:44:13 -03:00
Matthew Chen
f80059f8e9 Add support for animated stickers. 2020-09-02 13:44:13 -03:00
Matthew Chen
b2e9111ddd Add group invite link action sheet. 2020-09-01 17:25:02 -03:00
Matthew Chen
ed6ec5362d Add group link view. 2020-09-01 17:11:09 -03:00
Michelle Linington
a0cfcc87f0 Pull request feedback and removing unnecessary code
- Rename URL -> Url to follow convention
- Remove some duplicated/unnecessary code
- Parse the returned image Data with ImageData
2020-08-26 16:49:22 -07:00
Michelle Linington
1f9b6906df IOS-807: Fetch link preview content directly
This change updates the link preview fetch flow to fetch content
directly rather than through the proxy. This means we can remove the
allowed domain list and fetch content from most provided domains.

This almost moves HTML content parsing outside of OWSLinkPreview.
Currently we'll still only fetch the same content, but it's extensible
enough to fetch all sorts of different opengraph tags.

AFHTTPSessionManager will no longer faildebug on a request failure.
Since we're going to be firing opportunistic fetch requests as we parse
a URL, it's expected that some will fail.
2020-08-26 16:47:49 -07:00
Nora Trapp
1e7a3384c9 Add a donate link to settings 2020-08-25 17:42:46 -07:00
Nora Trapp
915a44d874 Merge branch 'release/3.15.0' 2020-08-21 18:45:40 -07:00
Nora Trapp
5d97da4fd4 Extend approval footer view behind keyboard 2020-08-21 17:40:19 -07:00
Nora Trapp
634402f039 Merge branch 'release/3.15.0' 2020-08-20 18:10:37 -07:00
Nora Trapp
a631a890d1 Extend attachment input toolbar behind keyboard. 2020-08-20 17:26:35 -07:00
Matthew Chen
7c047d5798 Minor cleanup. 2020-08-19 10:51:57 -03:00
Nora Trapp
9c93fe0836 Fix pip animation 2020-08-18 13:26:05 -07:00
Nora Trapp
1f1cc7398b Fix call video orientation handling 2020-08-17 15:41:11 -07:00
Nora Trapp
e868369ee0 improve pip gesture interaction 2020-08-17 15:41:11 -07:00
Nora Trapp
35ca25dbe7 Improve iPad calling experience 2020-08-17 15:41:11 -07:00
Nora Trapp
dc543ce24f Restyle return to call view 2020-08-17 15:41:10 -07:00
Michelle Linington
a64ed62df8 IOS-717: Filter out non-e164s in our CDS lookups
Modifies ContactDiscoveryTask to filter out any duplicate e164s. Also
renames a bunch of things to make identifier formatting expectations
more clear.

A candidate for further improvement: IOS-757: Adopt PhoneNumbers in CDS
subsystem
2020-08-14 12:25:37 -07:00
Matthew Chen
ddd31dbc19 Respond to CR. 2020-08-11 17:51:41 -03:00
Matthew Chen
73c8839061 Convert ContactsViewHelper to singleton. 2020-08-11 17:51:40 -03:00
Nora Trapp
cfe9862d94 Mentions Remote Flag 2020-08-07 17:16:35 -03:00
Michelle Linington
3f746368cd PR feedback:
- Adjust how clients provide QoS information to ContactDiscoveryTask
- Fix an issue where legacy CDS was reporting a generic server failure
  as a result of network failures.
- ContactDiscoveryTask will no longer error on an empty set
- Remove CDSFeedback operation
2020-08-06 12:57:39 -07:00
Michelle Linington
a660a81d0f IOS-668: Reorganize how ContactsUpdater interacts with CDS operations
- Removes ContactsUpdater singleton. It wasn't really tracking much
  state anyway
- Introduces ContactDiscoveryTask. This creates a
  ContactDiscoveryOperation (modern or legacy) and updates the
  SignalRecipients database on completion. Returns a promise.
- Begin migrating away from operation queues

PromiseKit is weird about priority propogation, so this shouldn't be
used yet. Since all then closures are asynced, priorities don't
propogate down to underlying queues. This means the a
ContactDiscoveryTask on the main queue will not boost the priority on
the ModernContactDiscoverOperation's owned operation queue
2020-08-06 12:55:32 -07:00
Matthew Chen
510200a880 Respond to CR. 2020-08-05 14:28:15 -03:00
Nora Trapp
340f8366d9 Allow tapping mentions in message bubbles 2020-08-04 14:09:06 -07:00
Nora Trapp
4696a4d993 Mention sending 2020-08-04 14:08:30 -07:00
Michelle Linington
d9b481b1ac Run precommit script
Old habits die hard
2020-08-04 13:38:05 -07:00
Michelle Linington
224fb2ad41 IOS-696: Changes to title in OWSTableContents after -loadView not handled
Fixes a minor bug that I discovered while playing with the support
flow. Navigation titles weren't showing up in the new view controllers.

It seems OWSTableViewController was only reading an OWSTableContents
title during -loadView. My first pass at the support flow's view
controllers overrode the -contents property, so this was working
originally. Later, I started setting -contents during -viewDidLoad which
is too late for OWSTableViewController.

Now, OWSTableViewController will update the title any time the
OWSTableContents changes and there's a non-zero length title provided.
2020-08-04 13:38:05 -07:00
Matthew Chen
587b8f2c36 Resumable attachment download. 2020-08-01 12:18:13 -03:00
Matthew Chen
001d36f73a Merge remote-tracking branch 'private/release/3.13.3' 2020-07-30 22:25:57 -03:00
Michelle Linington
872ad2de76 IOS-362: new support flow
Most of the UI work for the new support flow. This still needs some
tuning, but I wanted to checkpoint some of this work. This adds a couple
new views and view controllers to facilitate the new support flow.

What's left to be done:
- Putting together the send-message infrastructure
- Attach actions to all of the buttons
- Make sure the colors all match up with the spec
- Reach out to design for feedback
- Testing with various accessibility settings
2020-07-30 13:02:00 -07:00
Nora Trapp
90e1d54ce3 Add mention picker support to attachment flows 2020-07-30 11:23:45 -07:00
Matthew Chen
49397a55b3 Small fixes. 2020-07-27 14:08:59 -03:00
Matthew Chen
92769483bf Respond to CR. 2020-07-27 13:54:00 -03:00
Matthew Chen
19398ecd57 Design updates for legacy group indicator. 2020-07-24 17:46:58 -03:00
Matthew Chen
4d30176b92 Respond to CR. 2020-07-10 11:13:00 -03:00
Matthew Chen
00d5af278d Add owsFail() methods. 2020-07-10 10:59:24 -03:00
Nora Trapp
de0522586a Add the ability to opt out of PINs. 2020-07-09 18:46:17 -07:00
Matthew Chen
f6d5342765 Merge remote-tracking branch 'private/release/3.12.1' 2020-06-25 20:00:08 -03:00
Nora Trapp
fc63f37329 New safety number sheet 2020-06-25 19:04:12 -03:00
Nora Trapp
e480d75029 Adjust ActionSheetController dark theme style 2020-06-25 19:04:12 -03:00
Matthew Chen
059909bd1b Address sticker perf hotspots. 2020-06-23 10:07:18 -03:00
Matthew Chen
3cedd3ccdf Overhaul database observation. 2020-06-18 09:28:49 -03:00
Matthew Chen
aa7dcf2458 Respond to CR. 2020-06-12 13:49:52 -07:00
Nora Trapp
a464273380 Merge branch 'release/3.10.5' into release/3.11.0 2020-06-09 20:15:08 -07:00
Nora Trapp
2daf0f1500 Fix find by phone number view 2020-06-09 20:05:20 -07:00
Matthew Chen
c7f1b83c1c Merge branch 'release/3.10.4' into release/3.11.0 2020-06-08 21:12:54 -03:00
Nora Trapp
29fb38c9ad New permission reminders 2020-06-08 15:28:25 -07:00
Matthew Chen
19054e739f Move writes off of main thread. 2020-06-07 15:02:24 -03:00
Matthew Chen
09ea5e8f1b Label the "slow write transactions" logging with the source of the transaction. 2020-06-07 10:37:55 -03:00
Matthew Chen
ba801f05ce Label the "slow write transactions" logging with the source of the transaction. 2020-06-07 10:37:55 -03:00
Nora Trapp
ebc2943f80 Don't show the blur tooltip for non-editable attachments 2020-06-04 08:36:09 -07:00
Nora Trapp
8944e8517e Finalize blur tool UI 2020-06-03 14:15:36 -07:00
Nora Trapp
57a810658a Goodbye iOS 10 2020-05-27 17:34:32 -07:00
Matthew Chen
6b4f192b1b Remove usage of retainUntilComplete. 2020-05-22 09:51:12 -03:00
Matthew Chen
f9a38115ad Send invalid group updates from the debug UI. 2020-05-15 18:21:16 -03:00
Matthew Chen
1ad4a5b9ae Retain all promises until complete. 2020-05-15 18:13:12 -03:00
Matthew Chen
f8b9b209ff Respond to CR. 2020-05-11 10:19:52 -03:00
Matthew Chen
c8a638d356 Merge remote-tracking branch 'private/release/3.8.0' 2020-04-23 12:59:57 -03:00
Matthew Chen
046b94318a Apply theme blue tint colors. 2020-04-23 10:59:12 -03:00
Matthew Chen
0be80d70d9 Update section header and footer backgrounds in table views. 2020-04-23 10:59:12 -03:00
Matthew Chen
652bc2e040 More design changes. 2020-04-23 10:59:12 -03:00
Matthew Chen
2c59b0cbb7 More design changes. 2020-04-23 10:59:12 -03:00
Matthew Chen
c0feb1b897 More design changes. 2020-04-23 10:59:12 -03:00
Matthew Chen
8f66b175c6 Tweak avatar sizes again. 2020-04-22 15:21:34 -03:00
Matthew Chen
c67cf3f025 Revise table section header and footer backgrounds. 2020-04-22 15:21:33 -03:00
Matthew Chen
c7942fb2db Revise table section header and footer backgrounds. 2020-04-22 15:21:33 -03:00
Matthew Chen
b2e90bf164 Merge remote-tracking branch 'private/release/3.8.0' 2020-04-20 11:52:54 -03:00
Matthew Chen
07b3f14f65 Respond to CR. 2020-04-16 16:04:11 -03:00
Matthew Chen
d4be765136 Revise dark theme. 2020-04-16 14:33:13 -03:00
Matthew Chen
ee401e4845 Revise dark theme. 2020-04-16 14:21:17 -03:00
Matthew Chen
3437510a4e Revise dark theme. 2020-04-16 13:25:11 -03:00
Matthew Chen
9c37d12266 Revise dark theme. 2020-04-16 12:34:09 -03:00
Matthew Chen
7c3433c6ba Revise dark theme. 2020-04-16 12:00:42 -03:00
Matthew Chen
b3fba8829c Revise dark theme. 2020-04-16 11:44:03 -03:00
Matthew Chen
3bbbb1aae0 Revise dark theme. 2020-04-16 11:32:35 -03:00
Matthew Chen
817780f201 Revise dark theme. 2020-04-16 11:25:32 -03:00
Matthew Chen
33328391b9 Tweak font sizes again. 2020-04-16 09:07:04 -03:00
Matthew Chen
5ed3a38388 Update table cell layouts. 2020-04-16 09:07:04 -03:00
Matthew Chen
df8c7ee70d Update table cell layouts. 2020-04-16 09:07:04 -03:00
Matthew Chen
79780918a0 Update table cell layouts. 2020-04-16 09:07:04 -03:00
Matthew Chen
4cebf46de3 Update table cell layouts. 2020-04-16 09:07:04 -03:00
Matthew Chen
f912c1b490 Resize font sizes in table view cells. 2020-04-16 09:07:04 -03:00
Matthew Chen
6e79c0232c Update "view all members" item appearance. 2020-04-16 09:07:04 -03:00
Matthew Chen
273998f1f4 Tweak circle icon layout. 2020-04-16 09:07:04 -03:00
Matthew Chen
c2ae8f4421 More design changes. 2020-04-16 09:07:04 -03:00
Matthew Chen
7b5e78c8e8 More design changes. 2020-04-16 09:07:04 -03:00
Matthew Chen
d57cb36ace Merge remote-tracking branch 'private/release/3.8.0' 2020-04-15 10:08:56 -03:00
Nora Trapp
e90a8f9075 Allow attributed table header/footer 2020-04-14 17:33:43 -03:00
Matthew Chen
3191490149 Fix more build warnings. 2020-04-10 13:17:08 -03:00
Matthew Chen
7246c613d5 Fix more build warnings. 2020-04-10 13:17:08 -03:00
Nora Trapp
1c29a121fa Remove Xcode 11 TODOs 2020-04-09 16:40:49 -03:00
Matthew Chen
b42f1968cc Fix build warnings around initializers. 2020-04-08 16:05:54 -03:00
Matthew Chen
b38c7827f2 Fix build warnings around initializers. 2020-04-08 16:05:54 -03:00
Matthew Chen
b5c069ed95 Clean up VC initializers. 2020-04-08 09:26:25 -03:00
Matthew Chen
0ebed2cb22 Update block/leave actions in new conversation settings view. 2020-04-07 13:32:55 -03:00
Matthew Chen
c7df10eb36 Apply CGSize(square:). 2020-04-06 11:34:21 -03:00
Matthew Chen
d8a6334f5e Overhaul "create new group" and "add group member" views.
* Move "new group" button.
* Overhaul new group view header.
* Add 'new group confirm' view.
* Add the new "add group members" view.
2020-04-06 09:54:49 -03:00
Matthew Chen
94d4ff7dff Convert conversation settings view to Swift. 2020-04-02 13:11:53 -03:00
Matthew Chen
e097239dcd Sketch out revised "new group" view. 2020-03-17 10:31:20 -03:00
Matthew Chen
547f89e51e Merge tag '3.6.1.4' 2020-03-06 10:49:28 -03:00
Nora Trapp
3b36134050 Update loading/screen lock background color when the theme changes 2020-03-04 10:00:55 -08: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
Matthew Chen
e9d1c9d58e Fix crash in SAE. 2020-03-04 12:33:57 -03:00
Nora Trapp
76a0d688bb Use a different text color for the attachment approval placeholder 2020-03-03 15:29:54 -08:00
Matthew Chen
7c4c9be8b4 Merge remote-tracking branch 'private/release/3.6.0' 2020-03-03 11:40:53 -03:00