Commit graph

536 commits

Author SHA1 Message Date
Matthew Chen
f63d25a172 Migrate to Swift 4. 2018-05-30 15:05:02 -04:00
Matthew Chen
4d8c764789 Migrate to Swift 4. 2018-05-30 15:05:02 -04:00
Matthew Chen
77b72b6b06 Migrate to Swift 4. 2018-05-30 15:05:02 -04:00
Matthew Chen
da5ae63bbc Migrate to Swift 4. 2018-05-30 15:05:02 -04:00
Matthew Chen
28e26e1f75 Migrate to Swift 4. 2018-05-30 15:05:02 -04:00
Matthew Chen
916d55c55d 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
4d498563e7 Unify the socket manager's 'can send requests' logic. 2018-05-30 12:48:32 -04:00
Matthew Chen
c71081c875 Respond to CR. 2018-05-30 12:35:55 -04:00
Matthew Chen
bbf7ee451d Limit the scope of the 'incomplete contacts fetch' fix. 2018-05-30 10:52:53 -04:00
Matthew Chen
21b54bee4f Fix breakage from recents changes in share extension. 2018-05-29 10:45:58 -04:00
Matthew Chen
fbd03a3fdc Apply design for call view back button. 2018-05-25 09:53:37 -04:00
Michael Kirk
fc34a0643c CR: annotate device constants
// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
36ee6af621 respond to CR 2018-05-24 12:28:20 -04:00
Michael Kirk
20424d9a7e remove debug code, reorder for clarity
// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
fe62a6ac92 CNContactController needs to be presented in a navcontroller with a
translucent navbar.

In cases where we were presenting modally, we can easily modify the
modal to have a translucent navbar.

In the one place we were pushing onto the SignalsNavigationController,
rather than modifying the SNC.isTranslucent and having to clean it up,
I've opted to convert to a modal presentation.

// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
2709a91b5e Fixup attachment approval vis-a-vis call banner
// FREEBIE
2018-05-24 12:28:20 -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
4c9808d1a1 Fix iPhoneX layout show status bar above call banner
// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
3383c5e80c Fixup for iPhoneX
// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
778e11c2c3 cleanup ahead of PR
// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
7ad5f15448 Restore cancleable back gesture for those VC's that use it
// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
49c652ad14 Comment cleanup
// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
1b60716759 Stop worrying about notification order by using delegate pattern
// FREEBIE
2018-05-24 12:28:20 -04:00
Michael Kirk
319a6ff765 fixup behavior on iOS10 2018-05-24 12:28:20 -04:00
Michael Kirk
6c7af671bc call banner above status bar for now 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
Matthew Chen
bb19505c6a Make profile gets over websocket. 2018-05-22 15:45:11 -04:00
Matthew Chen
e2d9c1187a Fix "group avatar doesn't update after local change." 2018-05-18 15:37:38 -04:00
Michael Kirk
b1e06217b2 Consistently lower-case contact field headers
// FREEBIE
2018-05-17 16:45:44 -04:00
Matthew Chen
0620cb60df Normalize image colorspace. 2018-05-17 16:31:04 -04:00
Michael Kirk
2098ec570b Contact picker uses profile pic, when available.
// FREEBIE
2018-05-17 11:08:21 -04:00
Michael Kirk
f2750d18c6 Don't send empty contact card with just avatar
// FREEBIE
2018-05-17 09:59:57 -04:00
Matthew Chen
db1c8fd9f3 Respond to CR. 2018-05-16 17:24:10 -04:00
Matthew Chen
f436fc19c2 Make contact share "bubble/card" reflect share contents. 2018-05-16 17:19:05 -04:00
Matthew Chen
2edabdbba4 Sort group members. 2018-05-16 17:13:42 -04:00
Matthew Chen
152e1d7983 Respond to CR. 2018-05-14 14:00:22 -04:00
Matthew Chen
ca09d00e2e Use signal id as avatar color seed if possible. 2018-05-14 12:48:07 -04:00
Matthew Chen
edabe50678 Respond to CR. 2018-05-14 12:05:14 -04:00
Matthew Chen
a26cba3de1 Don't show screen block until app is ready. 2018-05-14 12:05:14 -04:00
Matthew Chen
0b488f1a65 Use case-insensitive comparison when sorting contacts. 2018-05-14 11:55:30 -04:00
Matthew Chen
73206c08ad Respond to CR. 2018-05-11 14:29:28 -04:00
Matthew Chen
b62d6900da Fix crash converting images in SAE. 2018-05-11 11:26:04 -04:00
Matthew Chen
ccc64e62bf Fix l10n strings. 2018-05-10 14:40:49 -04:00
Michael Kirk
2cc3eabdb8 quote reply to contact share (no avatar)
// FREEBIE
2018-05-10 14:34:19 -04:00
Michael Kirk
d1c33921ba Show avatar in contact approval view
// FREEBIE
2018-05-10 13:34:28 -04:00
Matthew Chen
6460493669 Surface organization name in contact view. 2018-05-10 12:05:07 -04:00
Matthew Chen
aa7cc4633a Rework contact names. 2018-05-10 12:05:07 -04:00
Michael Kirk
a16040f19f Fix avatar sending in SAE
// FREEBIE
2018-05-10 11:35:42 -04:00
Michael Kirk
adabf02732 Fix contact sharing (Avatar TODO)
// FREEBIE
2018-05-10 11:35:42 -04:00
Michael Kirk
c15fea4eca merge avatar with existing
// FREEBIE
2018-05-10 11:31:22 -04:00
Michael Kirk
bf37f41164 Move CNContact logic into our system contact adapter
// 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
3bb9e922d7 Surface contact share errors to user. 2018-05-09 17:52:00 -04:00
Matthew Chen
4079cdb600 Apply more contact share assets. 2018-05-09 17:51:27 -04:00
Matthew Chen
0b8d9991ef Respond to CR. 2018-05-09 17:46:51 -04:00
Matthew Chen
f77731eb7a Fix h margins in "edit contact share name" view. 2018-05-09 17:46:05 -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
41aa7eafe3 makeKeyAndVisible restores first responder, so no need to track it
ourselves.

This isn't *quite* as nice for the case when we want to restore a
textfield that was active before, but it much more simply covers the
more important case that we restore input accessory views after
backgrounding/foregrounding.

// FREEBIE
2018-05-08 17:07:15 -04:00
Matthew Chen
41f4b0866c Respond to CR. 2018-05-07 17:05:44 -04:00
Matthew Chen
bd116f8938 Share contacts from share extension. 2018-05-07 17:04:55 -04:00
Matthew Chen
50c49baca8 Update design of 'approve contact share' view. 2018-05-07 16:18:22 -04:00
Matthew Chen
5f1941f6aa Apply design changes from Myles. 2018-05-07 16:17:16 -04:00
Michael Kirk
a10ae1835e respond to code review
// FREEBIE
2018-05-07 12:51:55 -04:00
Michael Kirk
45f91ead44 Use actual avatar in ContactViewController
// FREEBIE
2018-05-07 12:08:41 -04:00
Michael Kirk
77fc5571fb Implement avatar sending
// FREEBIE
2018-05-07 12:08:41 -04:00
Michael Kirk
48b4791b13 Download avatar attachment stream
// 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
7c3991ebd8 Respond to CR. 2018-05-07 09:47:22 -04:00
Matthew Chen
ba74e3857a Clean up ahead of PR. 2018-05-04 18:13:22 -04:00
Matthew Chen
2c6f18fa6e Clean up ahead of PR. 2018-05-04 18:13:22 -04:00
Matthew Chen
60c3764525 Clean up ahead of PR. 2018-05-04 18:13:22 -04:00
Matthew Chen
fd93bf677e Clean up ahead of PR. 2018-05-04 18:13:22 -04:00
Matthew Chen
7a9acce504 Add contact share approval view. 2018-05-04 18:13:22 -04:00
Matthew Chen
6e18d84a10 Add contact share approval view. 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
390c0bc201 Send fake contact shares. 2018-05-04 09:37:04 -04:00
Matthew Chen
fa5577eece Create contact view. 2018-05-03 14:09:54 -04:00
Matthew Chen
0316a98eb8 Undo renaming of contactShare property of TSMessage. 2018-05-01 11:26:01 -04:00
Matthew Chen
0d8cfc5403 Rename contact share class to contact. 2018-05-01 11:03:25 -04:00
Matthew Chen
4b8a2fa8a3 Sketch out "contact share" model. 2018-05-01 11:03:25 -04:00
Michael Kirk
b702695793 cleanup 2018-04-26 11:18:18 -04:00
Michael Kirk
7a1d24a9ab Avatar updates when contact/profile/group photo changes
// FREEBIE
2018-04-26 11:18:18 -04:00
Matthew Chen
5773b45345 Respond to CR. 2018-04-25 10:49:19 -04:00
Matthew Chen
594e12f23c Respond to CR. 2018-04-25 10:49:19 -04:00
Matthew Chen
40ac0daa9a Respond to CR. 2018-04-25 10:49:19 -04:00
Matthew Chen
4b83b4afc5 Rework outgoing message state. 2018-04-25 10:49:19 -04:00
Matthew Chen
9275c67818 Rework outgoing message state. 2018-04-25 10:49:19 -04:00
Matthew Chen
9364af9b85 Make screen block view first responder. 2018-04-25 09:56:53 -04:00
Matthew Chen
107a1ff9c0 Clean up system contacts fetch. 2018-04-24 14:47:08 -04:00
Matthew Chen
c5981b164b Notify users of corrupt messages. 2018-04-24 13:41:44 -04:00
Matthew Chen
fa9a4c808a Simplify usage of contacts framework. 2018-04-24 13:21:12 -04:00
Matthew Chen
7f23dfa258 Respond to CR. 2018-04-24 13:15:11 -04:00
Matthew Chen
eb3569d8f8 Don't start app version migrations until storage is ready. 2018-04-24 11:56:32 -04:00
Matthew Chen
2265ae08aa Don't start app version migrations until storage is ready. 2018-04-24 11:56:32 -04:00