Commit graph

4017 commits

Author SHA1 Message Date
Michael Kirk ec0cf36abb Don't print empty bubbles.
e.g. if we add another "invisible" flag message in the future we want to
be able to roll it out immediately.

// FREEBIE
2017-08-29 10:39:36 -04:00
Michael Kirk 69e8ca8eac Handle receiving profile key messages
(don't print empty bubble)

// FREEBIE
2017-08-29 10:35:54 -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 6c63009e9e Dedicated "Profile" debug section
// FREEBIE
2017-08-29 10:35:54 -04:00
Michael Kirk 9c56660618 profile key flag and debug action
// FREEBIE
2017-08-29 10:35:54 -04:00
Michael Kirk fb42077db4 Merge branch 'mkirk/profile-key-sync' 2017-08-29 10:35:24 -04:00
Michael Kirk d8aa9b4a3d better comment per CR
// FREEBIE
2017-08-29 10:35:18 -04:00
Michael Kirk 0feb966a1c comment cleanup / code formatting
// FREEBIE
2017-08-29 10:35:18 -04:00
Michael Kirk 6cde79c568 Assert profile key length on sending/receiving
// FREEBIE
2017-08-29 10:35:18 -04:00
Michael Kirk 6235e7fe5c Don't send profile key with every sync message since we explicitly sync
upon update/create.

Following Signal-Android's lead here.

// FREEBIE
2017-08-29 10:35:18 -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 46919e4702 Add own profile key to multidevice provisioning message
// 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
Michael Kirk f0a57edde0 proto update: multiDevice profileKey sync
Also:

- minimize diff between Signal-Android's protos
- comment whereever we diverge from Signal-Android

// FREEBIE
2017-08-29 10:35:18 -04:00
Matthew Chen ce92cc6325 Merge branch 'charlesmchen/fixScrollDownButton' 2017-08-28 16:21:10 -04:00
Matthew Chen d3d9e5dabc Fix scroll down button state.
// FREEBIE
2017-08-28 14:55:39 -04:00
Matthew Chen 4f8508050a Merge branch 'charlesmchen/localProfileVsUploadForm' 2017-08-28 13:11:32 -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 47ae4bd90c Merge branch 'charlesmchen/clearProfileAvatars' 2017-08-28 13:08:53 -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
Matthew Chen 65eb5c725c Bump build from to 2.16.0.8.
// FREEBIE
2017-08-25 17:24:46 -04:00
Michael Kirk 5ec9b40f10 Merge branch 'mkirk/profile-censorship' 2017-08-25 17:19:50 -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 c630a1ecc0 Merge branch 'charlesmchen/messageViewTweaks' 2017-08-25 17:01:23 -04:00
Matthew Chen f2ae73e156 Remove obsolete "scrollLaterTimer" hack in messages view.
// FREEBIE
2017-08-25 17:01:13 -04:00
Matthew Chen 8794880db8 Unbound message bubble cache size and DRY up cache logic.
// FREEBIE
2017-08-25 17:01:13 -04:00
Matthew Chen d4879a5f5b Update JSQMessageView.
* Fix "scroll state flickers when presenting messages view" issue.
* Ignore spurious trait collection changes on view presentation.
* Remove redundant view layout in JSQ view.

// FREEBIE
2017-08-25 16:59:01 -04:00
Matthew Chen c08d81e45f Merge branch 'charlesmchen/cropAndScaleAvatar' 2017-08-25 16:50:43 -04:00
Matthew Chen c90ca331e3 Respond to CR.
// FREEBIE
2017-08-25 16:50:14 -04:00
Matthew Chen 2aaa9155de Add view to Crop and scale avatar.
// FREEBIE
2017-08-25 16:02:15 -04:00
Matthew Chen 6b8e189f45 Add view to Crop and scale avatar.
// FREEBIE
2017-08-25 16:02:15 -04:00
Matthew Chen 728028563c Add double-tap to zoom out.
// FREEBIE
2017-08-25 16:02:15 -04:00
Matthew Chen e7b32f9fd1 Add double-tap to zoom out.
// FREEBIE
2017-08-25 16:02:15 -04:00
Matthew Chen 2b50eb5acc Add view to Crop and scale avatar.
// FREEBIE
2017-08-25 16:02:15 -04:00
Matthew Chen 2c301feeb7 Add view to Crop and scale avatar.
// FREEBIE
2017-08-25 16:02:15 -04:00
Matthew Chen 428edb6172 Merge branch 'charlesmchen/profileNameLengthError' 2017-08-25 16:01:18 -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 3cccf92757 Merge branch 'mkirk/profile-name-for-avatar' 2017-08-25 12:42:12 -04:00
Michael Kirk bde40a1f9c Ensure avatar upates right after profile change.
// FREEBIE
2017-08-25 12:40:19 -04:00
Michael Kirk f6720f9afa properly clear all cached avatar images
// FREEBIE
2017-08-25 12:40:19 -04:00
Michael Kirk b579ea5915 Use profile name when building avatar if contact name is unavailable
// FREEBIE
2017-08-25 12:40:19 -04:00
Matthew Chen 0812e73fd9 Merge branch 'charlesmchen/groupProfileWhitelistCache' 2017-08-24 17:30:12 -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 1944979ac2 Merge branch 'charlesmchen/noAvatarInNewContacts' 2017-08-24 17:28:28 -04:00
Matthew Chen 9bf80a215f Don't add avatar to new contacts.
// FREEBIE
2017-08-24 17:28:18 -04:00