Commit graph

3737 commits

Author SHA1 Message Date
Michael Kirk a3ae22c84f Upload profile avatar to service
WIP, this currently lacks crypto pending further discussion.

// FREEBIE
2017-08-09 11:44:34 -04:00
Michael Kirk 45a1f534ba Rename method to make way for new method.
No behavioral changes.

// FREEBIE
2017-08-08 15:03:48 -04:00
Michael Kirk 388b778a06 Merge branch 'mkirk/unknown-group-info-request' 2017-08-08 12:18:14 -04:00
Michael Kirk 72b3f3779b Discard GroupInfoRequest from unknown group
// FREEBIE
2017-08-08 12:17:26 -04:00
Michael Kirk a8bfa45f1a Merge branch 'mkirk/use-profile-data' 2017-08-07 16:57:02 -04:00
Michael Kirk 16c646a939 Use profile name/image when available.
Refactored the ContactAvatarBuilder to clarify intent of the two
methods. One is only used for non-signal contacts in the Invite flow.
The other should be used for any signal contacts so we have a single
consistent way of generating the avatar initials.

// FREEBIE
2017-08-07 16:50:55 -04:00
Michael Kirk 8f54df0ff9 Merge branch 'mkirk/whitelist-on-main' 2017-08-07 16:49:12 -04:00
Michael Kirk ee613e4889 Can only set whitelist on main thread
As written solves a crash, but we'll probalby want to revisit the perf
implications.

// FREEBIE
2017-08-07 16:48:12 -04:00
Michael Kirk e07ed50170 define avatar form URL
// FREEBIE
2017-08-07 15:17:34 -04:00
Michael Kirk 71be024fd9 [SPK] more asserts/logging
// FREEBIE
2017-08-07 12:08:56 -04:00
Matthew Chen 98e6685304 Merge branch 'charlesmchen/profile10a' 2017-08-04 17:54:23 -04:00
Matthew Chen e01fbc247e Refine profile logic.
// FREEBIE
2017-08-04 17:35:22 -04:00
Matthew Chen 09e65a674b Incomplete work to upload avatars.
// FREEBIE
2017-08-04 17:35:16 -04:00
Matthew Chen f6668d24c1 Download profile avatars.
// FREEBIE
2017-08-04 17:35:02 -04:00
Matthew Chen 9266c3a4f9 Clear profile state when a user’s profile key changes.
// FREEBIE
2017-08-04 17:34:27 -04:00
Matthew Chen 8b9749202d Load local user profile avatar if necessary.
// FREEBIE
2017-08-04 17:34:27 -04:00
Matthew Chen 21304c18a6 Once we've shared our profile key with a user (perhaps due to being a member of a whitelisted group), make sure they're whitelisted.
// FREEBIE
2017-08-04 17:34:27 -04:00
Matthew Chen fa1678f945 Merge branch 'charlesmchen/profiles9a' 2017-08-04 17:33:25 -04:00
Matthew Chen 98def41782 Respond to CR.
// FREEBIE
2017-08-04 17:33:16 -04:00
Matthew Chen 823927685d Update profile on service.
// FREEBIE
2017-08-04 15:25:17 -04:00
Matthew Chen 83d01eed76 Don’t encrypt/decrypt avatar URL or digest.
// FREEBIE
2017-08-04 15:25:10 -04:00
Matthew Chen cc789c7df5 Merge branch 'charlesmchen/profiles8' 2017-08-04 15:23:29 -04:00
Matthew Chen f6bcff5427 Fix rebase breakage.
// FREEBIE
2017-08-04 15:23:17 -04:00
Matthew Chen 83e2fbe28c Rework where profile key is attached in photos.
// FREEBIE
2017-08-04 15:23:17 -04:00
Matthew Chen b5fdc05b91 Move profile key to data, call, sync and null protos.
// FREEBIE
2017-08-04 15:23:02 -04:00
Matthew Chen 37ce388eb6 Add “add to profile whitelist” offer.
// FREEBIE
2017-08-04 15:23:02 -04:00
Michael Kirk 9f6ca3d848 Merge branch 'mkirk/precache-localnumber' 2017-08-04 15:19:34 -04:00
Michael Kirk ed4de7e8af Simplify code / pre-cache localNumber
Now that localNumber is read from a dedicated dbConnection we don't have
to worry about it blocking.

// FREEBIE
2017-08-04 15:19:26 -04:00
Michael Kirk f99d4e9df9 Merge branch 'hotfix/2.15.2' 2017-08-04 13:11:53 -04:00
Michael Kirk 7836867780 pull latest translations
// FREEBIE
2017-08-04 12:38:55 -04:00
Michael Kirk b29d87cb3e bump build
// FREEBIE
2017-08-04 12:33:55 -04:00
Michael Kirk df94337a01 Merge branch 'mkirk/improve-asserts' into hotfix/2.15.2 2017-08-04 12:33:34 -04:00
Michael Kirk 3856f3dfb1 Improve asserts/logging
// FREEBIE
2017-08-04 12:14:43 -04:00
Michael Kirk 2195808275 Merge branch 'mkirk/fix-tests' 2017-08-04 11:34:05 -04:00
Michael Kirk 52bd682565 fix some recently broken tests
// FREEBIE
2017-08-04 11:33:51 -04:00
Matthew Chen b18f3bc08a Merge branch 'charlesmchen/unregisterVsProfileCache' 2017-08-04 10:32:10 -04:00
Matthew Chen 03774216a0 Respond to CR.
// FREEBIE
2017-08-04 10:32:00 -04:00
Matthew Chen 6ac4d8e971 Delete profile avatars on disk when unregistering.
// FREEBIE
2017-08-04 10:29:56 -04:00
Matthew Chen 50a3790969 Merge branch 'charlesmchen/profileWhitelistVsOwnGroups' 2017-08-04 10:29:09 -04:00
Matthew Chen ddf3929be1 Auto-add groups to profile whitelist groups when you make them.
// FREEBIE
2017-08-04 10:17:24 -04:00
Matthew Chen e74e7f7cc9 Merge branch 'charlesmchen/profiles7' 2017-08-04 10:16:27 -04:00
Matthew Chen ba506bf092 Respond to CR.
// FREEBIE
2017-08-04 10:16:17 -04:00
Matthew Chen 49e65ba1b1 Update user profile update date on successful update.
// FREEBIE
2017-08-04 09:45:33 -04:00
Matthew Chen 9c0f94f1c0 Fetch profiles from profile manager. Update profile manager with profile fetch results.
// FREEBIE
2017-08-04 09:45:33 -04:00
Matthew Chen 6ec756de44 Move profile manager to Signal.
// FREEBIE
2017-08-04 09:45:33 -04:00
Matthew Chen 540a0a8e48 Refine UserProfile class. Move local user properties to UserProfile.
// FREEBIE
2017-08-04 09:45:33 -04:00
Matthew Chen 6bc20ea971 Merge branch 'charlesmchen/showThreadsSync' 2017-08-04 09:35:20 -04:00
Matthew Chen a70bd3307d Show threads if possible.
// FREEBIE
2017-08-04 09:35:10 -04:00
Michael Kirk aa5c441aed Merge branch 'mkirk/cache-local-number' 2017-08-03 13:40:57 -04:00
Michael Kirk 935b51aa19 Fixup tests
// FREEBIE
2017-08-03 13:27:09 -04:00