Commit graph

79 commits

Author SHA1 Message Date
Matthew Chen cd11ec5698 Add app group, share keychain. Take a first pass at file migration to shared data directory. 2017-11-30 09:49:01 -05:00
Matthew Chen 2d8a7b03d0 Respond to CR.
// FREEBIE
2017-11-16 10:12:47 -05:00
Matthew Chen d7b0424c75 Don't back up profile pics, attachments or gifs.
// FREEBIE
2017-11-16 09:59:02 -05:00
Matthew Chen 19ba564f80 Respond to CR.
// FREEBIE
2017-11-15 13:21:31 -05:00
Matthew Chen c6160a5a1e Rework the "update with..." methods to avoid re-saving deleted models. 2017-11-15 07:16:12 -05:00
Matthew Chen 6e840ff956 Fix build warnings from XCode 9. 2017-11-09 02:52:44 -05:00
Matthew Chen 44051bd7e7 Avoid deadlock in profile manager.
// FREEBIE
2017-10-12 12:46:53 -04:00
Matthew Chen 16d4256e99 Address deadlocks in profile manager.
// FREEBIE
2017-09-27 13:00:01 -04:00
Michael Kirk 4777335ffa Don't attempt to sync profile until registered.
Otherwise there's an unnecessary initial (innocuous) failed HTTP attempt
on first launch for unregistered users.

// FREEBIE
2017-09-26 10:45:45 -04:00
Matthew Chen 9dcc7e1ea0 Respond to CR.
// FREEBIE
2017-09-26 09:46:47 -04:00
Matthew Chen 57b5ccdc3f Address deadlocks in profile manager.
// FREEBIE
2017-09-26 09:43:41 -04:00
Matthew Chen cb365d0a58 Address deadlocks in profile manager.
// FREEBIE
2017-09-26 09:43:41 -04:00
Matthew Chen 35a2470cb7 Post notifications asynchronously.
// FREEBIE
2017-09-21 17:03:57 -04:00
Matthew Chen 0c281cab95 Add "log user profiles" debug UI action.
// FREEBIE
2017-09-07 15:33:12 -04:00
Michael Kirk 5d58f43837 More profile logging
// FREEBIE
2017-09-07 13:32:45 -04:00
Michael Kirk 04bf548a7b Fix one-time crash when opening thread without having a local profile
// FREEBIE
2017-09-07 13:24:15 -04:00
Matthew Chen 16dcc73b2d Respond to CR.
// FREEBIE
2017-09-05 12:31:19 -04:00
Matthew Chen 2ce66527fb Add group members individual to profile whitelist when adding group.
// FREBIE
2017-09-05 12:30:15 -04:00
Michael Kirk 362b383785 Length-limit profile name field
// FREEBIE
2017-09-01 18:14:08 -04:00
Matthew Chen cc048b3971 Respond to CR.
// FREEBIE
2017-08-30 12:46:21 -04:00
Matthew Chen d7b0b6a253 Fix build break in production builds.
// FREEBIE
2017-08-29 17:30:56 -04:00
Matthew Chen 3c90c3361a Respond to CR.
// FREEBIE
2017-08-29 16:31:27 -04:00
Matthew Chen 71d7490e35 Re-sync local profile state with service if necessary.
// FREEBIE
2017-08-29 16:29:54 -04:00
Michael Kirk 4c51f1810c sync local profile as soon as it's created
// FREEBIE
2017-08-29 11:05:19 -04:00
Michael Kirk ab84cbd670 use messageSender property now that the class relies on it in multiple
places.

(due to rebase)

// FREEBIE
2017-08-29 10:49:22 -04:00
Michael Kirk 42934e5fd4 remove retry logic per code review
the system naturally recovers anyway, upon sending messages, no need to
hit the user with another alert.

// FREEBIE
2017-08-29 10:49:22 -04:00
Michael Kirk 55d0db8c46 Disable profile-key sending with feature flag
// FREEBIE
2017-08-29 10:39:36 -04:00
Michael Kirk 4382f33618 Send blank PROFILE_MESSAGE after whitelisting someone
So they can immediately fetch your profile.
Note, we're going to put this behind a feature flag for initial release
since iOS prints an empty bubble when receiving a message like this.

// FREEBIE
2017-08-29 10:35:54 -04:00
Michael Kirk 526d5e33b9 Sync profile key to sibling devices when updating contact
// FREEBIE
2017-08-29 10:35:18 -04:00
Michael Kirk 1f3d2d1ed6 Send any profile key in contact sync
// FREEBIE
2017-08-29 10:35:18 -04:00
Matthew Chen cdfdb80fd1 Respond to CR.
// FREEBIE
2017-08-28 13:11:13 -04:00
Matthew Chen 7e4859241a Clear the local profile avatar immediately when we request upload form.
// FREEBIE
2017-08-28 13:09:33 -04:00
Matthew Chen 0fa19b5269 Clear own avatar on service if necessary when updating local profile. Clear others' avatar when appropriate.
// FREEBIE
2017-08-28 11:59:36 -04:00
Matthew Chen 50a8d0f165 Clear own avatar on service if necessary when updating local profile. Clear others' avatar when appropriate.
// FREEBIE
2017-08-28 11:57:39 -04:00
Michael Kirk 1e51bf4899 extract event names
// FREEBIE
2017-08-25 17:19:31 -04:00
Michael Kirk 251e206b6d profiles vs. censorship circumvention
// FREEBIE
2017-08-25 17:17:43 -04:00
Matthew Chen 374a59e937 Remove an old TODO.
// FREEBIE
2017-08-25 16:01:09 -04:00
Matthew Chen e8a6ca1c22 Show an error when profile name is too long.
// FREEBIE
2017-08-25 16:01:09 -04:00
Michael Kirk bde40a1f9c Ensure avatar upates right after profile change.
// FREEBIE
2017-08-25 12:40:19 -04:00
Matthew Chen 89bacf5cce Respond to CR.
// FREEBIE
2017-08-24 17:29:52 -04:00
Matthew Chen 65db75a91d Fix group profile whitelist check.
// FREEBIE
2017-08-24 17:29:32 -04:00
Matthew Chen 9bf80a215f Don't add avatar to new contacts.
// FREEBIE
2017-08-24 17:28:18 -04:00
Michael Kirk 903d792af4 Debug action to clobber local profile and key
// FREEBIE
2017-08-24 14:52:49 -04:00
Michael Kirk 279eb89023 Fix whitelist
whitelist cache are a bunch of NSNumber's, we need to check their
boolValue

// FREEBIE
2017-08-23 14:59:25 -04:00
Michael Kirk 0a57e7db09 Fix slow start crash after upgrade to 2.16
We were opening a write transaction before our sync extensions were
registered. This seems to have caused our views to rebuild themselves
once they did register, which in turn can cause device timeout.

Instead of opening transcations in `init`, we only build the
localProfile once it's needed.

A future PR will ensure transactions
aren't being created before syncViews are registered.

// FREEBIE
2017-08-23 11:02:24 -04:00
Matthew Chen 68ee56174a Pad empty profile names instead of nil.
// FREEBIE
2017-08-21 17:49:04 -04:00
Matthew Chen 9dfeb132cb Respond to CR.
// FREEBIE
2017-08-21 17:27:30 -04:00
Matthew Chen 1e43e93371 Observe profile changes in conversation view.
// FREEBIE
2017-08-21 17:25:07 -04:00
Michael Kirk 72fbb02028 aes-gcm via openssl
// FREEBIE
2017-08-21 16:37:16 -04:00
Michael Kirk 7c386b1d1e CR: RTL, trim profile names, ensure not empty
- RTL support with localizable format strings
- Trim decrypted profile names
- more rigorous empty check

// FREEBIE
2017-08-17 12:24:31 -04:00