Commit graph

197 commits

Author SHA1 Message Date
Matthew Chen
2ecbf1bb65 Fix 'contact cell vs. message details layout' issue. 2018-06-21 17:16:50 -06:00
Matthew Chen
71c63d9fce Remove obsolete assert. 2018-06-21 17:23:50 -04:00
Matthew Chen
b75f4596aa Remove obsolete assert. 2018-06-21 17:23:50 -04:00
Matthew Chen
fbbb9276b9 Respond to CR. 2018-06-20 17:55:15 -04:00
Matthew Chen
87ea1dcae1 Clean up ahead of PR. 2018-06-20 17:55:15 -04:00
Matthew Chen
08ca4fdb50 Lazy-load contact avatar data and images. Use NSCache for avatar images. 2018-06-20 17:55:14 -04:00
Matthew Chen
b9e2963f47 Don't cache CNContact. 2018-06-20 17:55:14 -04:00
Matthew Chen
83f11ad79b Don't cache CNContact. 2018-06-20 17:55:14 -04:00
Matthew Chen
12295bd8c5 Don't cache CNContact. 2018-06-20 17:55:14 -04:00
Matthew Chen
647d80d79d Unify the cell and avatar sizes. 2018-06-15 11:15:21 -04:00
Matthew Chen
40e5bcc23f Respond to CR. 2018-06-15 10:03:15 -04:00
Matthew Chen
dd49c6225f Auto-size contact cells everywhere. 2018-06-15 10:01:16 -04:00
Matthew Chen
a51e9b78b0 Improve search query construction. 2018-06-14 16:18:13 -04:00
Matthew Chen
646073c92d Check contacts access when notified of contacts changes. 2018-06-13 11:19:02 -04:00
Matthew Chen
4abd3f58cd Order the search results. 2018-06-13 11:03:52 -04:00
Matthew Chen
6579857a42 Respond to CR. 2018-06-01 12:43:14 -04:00
Matthew Chen
6f0c1a975b Fix build warnings. 2018-06-01 12:39:13 -04:00
Matthew Chen
3cd6a33aa6 Fix build warnings. 2018-06-01 12:39:13 -04:00
Matthew Chen
5e166c238f Respond to CR. 2018-05-30 15:33:00 -04:00
Matthew Chen
01cf2fc1bd Clear the contacts cache if access to the system contacts is revoked. 2018-05-30 15:30:52 -04:00
Matthew Chen
28e26e1f75 Migrate to Swift 4. 2018-05-30 15:05:02 -04:00
Matthew Chen
28f7142a59 Auto-migration to Swift 4. 2018-05-30 15:05:02 -04:00
Matthew Chen
bbf7ee451d Limit the scope of the 'incomplete contacts fetch' fix. 2018-05-30 10:52:53 -04:00
Michael Kirk
4f80100234 Tapping on status bar returns to call
We want to render the return-to-call banner behind the status bar, so
the user can see the system clock, etc.

But normally, doing so would mean we wouldn't receive touches in the top
20px of the screen.

// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
29d08545e2 Use OWSNavigationController instead of UINavigationController
- [ ] document picker
- [ ] camera picker
- [ ] image picker
- [ ] restore "confirm to go back" behavior (interactive pop gesture?)

// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
33eb4c38cd Centralize translucency configuration
// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
2098ec570b Contact picker uses profile pic, when available.
// FREEBIE
2018-05-17 11:08:21 -04:00
Matthew Chen
2edabdbba4 Sort group members. 2018-05-16 17:13:42 -04:00
Matthew Chen
0b488f1a65 Use case-insensitive comparison when sorting contacts. 2018-05-14 11:55:30 -04:00
Matthew Chen
aa7cc4633a Rework contact names. 2018-05-10 12:05:07 -04:00
Michael Kirk
c15fea4eca merge avatar with existing
// FREEBIE
2018-05-10 11:31:22 -04:00
Michael Kirk
0c469764f1 re-use contact picker for "add to existing"
Required refactor of contact picker to be presented non-modally.

TODO: merge emails, address, display names

// FREEBIE
2018-05-10 11:31:22 -04:00
Michael Kirk
b1f3324514 cleanup contact syncing
It's largely a redundant check anyway, but the previous typo was a
no-op.

// FREEBIE
2018-05-09 21:56:33 -04:00
Matthew Chen
44ceee5849 Add contact share actions to conversation view and improve phone number parsing. 2018-05-08 17:22:34 -04:00
Michael Kirk
77fc5571fb Implement avatar sending
// FREEBIE
2018-05-07 12:08:41 -04:00
Matthew Chen
4b6239f491 Fix build breakage. 2018-05-07 10:06:59 -04:00
Matthew Chen
ba74e3857a Clean up ahead of PR. 2018-05-04 18:13:22 -04:00
Matthew Chen
0c745dd989 Add contact share approval view. 2018-05-04 18:13:22 -04:00
Matthew Chen
f9d5421edc Modify system contacts fetch to use serial queue. 2018-05-04 13:20:17 -04:00
Matthew Chen
bec5a9f428 Revert "oOnly one system contacts fetch at a time."
This reverts commit d84e27f5a5f953fd68dbdf1086a75ffe6aee6720.
2018-05-04 13:20:17 -04:00
Matthew Chen
b767996dba oOnly one system contacts fetch at a time. 2018-05-04 13:20:17 -04:00
Matthew Chen
107a1ff9c0 Clean up system contacts fetch. 2018-04-24 14:47:08 -04:00
Matthew Chen
fa9a4c808a Simplify usage of contacts framework. 2018-04-24 13:21:12 -04:00
Matthew Chen
21ab670fc9 Clean up ahead of PR. 2018-04-24 11:29:24 -04:00
Michael Kirk
90dda0bf9c SEPARATE: Use non-signal contact's full name
// FREEBIE
2018-04-21 19:21:19 -04:00
Matthew Chen
6caa5b87b6 Add more asserts around thread in SAE. 2018-04-13 14:59:38 -04:00
Michael Kirk
e554884ab3 Use profile name in quoted messages, fix "multi account" label
// FREEBIE
2018-04-13 09:53:31 -04:00
Matthew Chen
d561ba4c62 Reduce 0xdead10cc crashes. 2018-04-11 14:44:03 -04:00
Matthew Chen
b8f8a3017a Apply design changes to home view. 2018-04-11 09:34:37 -04:00
Michael Kirk
af5f549e49 Fix TableView layout for iPhoneX
// FREEBIE
2018-04-02 17:02:32 -04:00
Michael Kirk
6f1608f44b Conventional naming for out custom PureLayout methods.
This moves methods more in line with PureLayout conventions.

- Methods always specify if they pin to an edge vs margin

- `margin` is a reserved word which should only refer to layout margins.
  i.e. do not use it to refer to "inset" and "offset".

// FREEBIE
2018-04-02 17:02:32 -04:00
Matthew Chen
593f7da72d Upload test file to CloudKit. 2018-03-12 16:40:07 -03:00
Matthew Chen
db430d6aa7 Revert unwanted changes. 2018-03-06 17:12:13 -03:00
Matthew Chen
d6f4db1523 Rename TSStorageManager to OWSPrimaryStorage. 2018-03-06 17:12:13 -03:00
Matthew Chen
59c745756a Clean up codebase. 2018-03-02 15:05:14 -05:00
Matthew Chen
a87b79341f Respond to CR. 2018-03-02 11:10:09 -05:00
Matthew Chen
baf6fcc535 Add 2FA registration view. 2018-03-02 10:55:00 -05:00
Matthew Chen
e12a1e984a Work on two-factor auth settings UI. 2018-03-01 15:38:59 -05:00
Matthew Chen
99aedca45f Strip out special casing for pre-iOS 9 users. 2018-02-26 14:13:38 -05:00
Matthew Chen
d648a258d1 Merge branch 'hotfix/2.19.7' 2018-02-16 10:49:52 -05:00
Matthew Chen
114df18372 Refine SAE UI. 2018-02-12 22:29:01 -05:00
Michael Kirk
c646f76335 Garther audio concerns, clean up session when done
- sync speakerphone state manipulated from system call screen
  - Revert audio session after call failure, ensures media plays out of
    speaker after placing a failing call.
  - Replace notification with delegate pattern since we're already using
    delegate pattern here.
- Fixes voiceover accessibility after voice memo
- Avoid audio blip after pressing hangup
- Rename CallAudioSession -> OWSAudioSession
  Going to start using it for other non-call things since we want to
  gather all our audio session concerns.
- Resume background audio when done playing video
  - Extract OWSVideoPlayer which ensures audio is in proper state before
    playback
  - Move recording session logic to shared OWSAudioSession
  - Deactivate audio session when complete

// FREEBIE
2018-02-06 18:45:51 -08:00
Michael Kirk
0f9dd46b91 Fix attachment approval layout on iPhoneX
convert captioning toolbar to autolayout in the process

// FREEBIE
2018-02-02 11:12:18 -08:00
Matthew Chen
4bfdef520a Respond to CR. 2018-01-30 12:39:27 -05:00
Matthew Chen
b21f793756 Register all database views asynchronously. 2018-01-30 10:30:28 -05:00
Michael Kirk
456a931b9f Fix block handling for ContactThreads, previously it only worked for
recipients without a thread.

// FREEBIE
2018-01-29 09:57:04 -08:00
Matthew Chen
41b7a8dd75 Fix build breakage. 2018-01-25 16:09:38 -05:00
Matthew Chen
e2fa695fc4 Fix build break. 2018-01-25 15:57:16 -05:00
Michael Kirk
baa312f449 Timer button with duration label
// FREEBIE
2018-01-22 10:28:51 -05:00
Michael Kirk
5c2075cdb6 Show disappearing messages timer in share extension
// FREEBIE
2018-01-21 20:31:40 -05:00
Matthew Chen
2b528ad894 Don't use mainApplicationState in business logic. 2018-01-12 14:24:35 -05:00
Matthew Chen
58e9252689 Let users send to non-contacts, non-threads in SAE. 2018-01-10 17:56:30 -05:00
Matthew Chen
4d6ee9e2de Let users send to non-contacts, non-threads in SAE. 2018-01-10 17:56:30 -05:00
Matthew Chen
9e89502fdb Let users send to non-contacts, non-threads in SAE. 2018-01-10 17:56:30 -05:00
Matthew Chen
e77c3e6717 Retain changes from session database branch. 2018-01-10 12:18:23 -05:00
sdkjfhsdkjhfsdlkjhfsdf
76481a86a5 stabalize sort for same-named SignalAccounts
// FREEBIE
2017-12-20 13:49:15 -06:00
Matthew Chen
9258b0883e Clean up TSStorageManager usage. 2017-12-19 11:41:31 -05:00
Matthew Chen
d52eba739d Clean up TSStorageManager usage. 2017-12-19 11:41:31 -05:00
Matthew Chen
85686d3144 Continue TSStorageManager refactor. 2017-12-19 11:41:30 -05:00
Matthew Chen
9a990b58e8 Respond to CR. 2017-12-19 11:38:25 -05:00
Matthew Chen
a29c4ce5d6 Pull out OWSStorage base class for TSStorageManager. 2017-12-19 11:16:01 -05:00
Michael Kirk
157bf00410 Merge branch 'hotfix/2.19.3' 2017-12-17 14:02:03 -05:00
Michael Kirk
4f06518539 Merge tag '2.19.3.1' 2017-12-14 16:21:41 -05:00
Michael Kirk
3affb07a11 post-merge formatting fixup
// FREEBIE
2017-12-14 11:43:27 -05:00
Michael Kirk
16448e2a0b Merge tag '2.19.3.0' 2017-12-14 11:42:57 -05:00
Matthew Chen
74efcb9041 Rework thread safety in profile manager. 2017-12-11 12:28:28 -05:00
Michael Kirk
23014f9ea4 Keep header affixed to navbar.
// FREEBIE
2017-12-08 11:40:59 -05:00
Michael Kirk
3ecf0a7537 Cancelling dismisses share extension, remove "import with signal"
Usinig the new ShareViewDelegate to dismiss the share extension, might
have broken the "import with signal" functionality. But because we
want to remove it anyway, I've done that now, rather than fix it up.

// FREEBIE
2017-12-07 17:12:03 -05:00
Matthew Chen
7a1e47cd26 Add asserts around Swift singletons. 2017-12-07 13:57:45 -05:00
Matthew Chen
99f0b9d3e8 Fix issues around statics. 2017-12-07 12:34:02 -05:00
Michael Kirk
eca19e5874 Reconcile MediaMessageView zoom behavior with AppExtension
Previously it was predicated on UIApplication.shared

// FREEBIE
2017-12-07 10:14:30 -05:00
Michael Kirk
a58f1f385c Share a photo from photos app
Shows the conversation picker, and sends the attachment to that
conversation.

There's still a lot TODO

-[ ] resolve JSQ dependency
-[ ] properly wait for app to load
-[ ] dismiss share extension after send is complete
-[ ] support non jpeg file types
-[ ] Fix device sleep manager

// FREEBIE
2017-12-07 10:13:06 -05:00
Matthew Chen
310cf1330d Continue conversion of app setup. 2017-12-06 10:38:57 -05:00
Matthew Chen
150f417a5e Clean up ahead of PR. 2017-12-05 11:32:19 -05:00
Matthew Chen
9da165b846 Continue conversion of app setup. 2017-12-05 11:19:11 -05:00
Matthew Chen
ce899edf10 Respond to CR. 2017-12-05 10:44:11 -05:00
Matthew Chen
6d87df88aa Migrate environment to SignalMessaging. 2017-12-05 10:29:28 -05:00