Commit graph

3769 commits

Author SHA1 Message Date
Matthew Chen fde0ca6ed7 Update l10n strings.
// FREEBIE
2017-08-15 16:42:21 -04:00
Matthew Chen 80951349ea Bump version to 2.16.0.0.
// FREEBIE
2017-08-15 16:40:34 -04:00
Michael Kirk 00860e8981 Merge branch 'mkirk/scale-avatar' 2017-08-15 16:25:28 -04:00
Michael Kirk abec536729 simplify check for max file size per CR
// FREEBIE
2017-08-15 16:25:01 -04:00
Michael Kirk 2c3e99c372 better var name per code review
// FREEBIE
2017-08-15 15:51:41 -04:00
Michael Kirk fd02644ca7 resize profile avatar
// FREEBIE
2017-08-15 15:51:41 -04:00
Michael Kirk 6bb102783d Merge branch 'mkirk/save-profile-to-contact' 2017-08-15 15:48:54 -04:00
Michael Kirk 9f72db44ac Avoid lossy re-encoding of profile image
// FREEBIE
2017-08-15 15:45:52 -04:00
Michael Kirk 0290f176c0 Use profile name/avatar when creating new contact
// FREEBIE
2017-08-15 15:45:52 -04:00
Michael Kirk 9f45ddd393 Merge branch 'mkirk/gcm-verification' 2017-08-15 15:20:02 -04:00
Michael Kirk 97afa4d48a verification on decrypt
// FREEBIE
2017-08-15 15:19:40 -04:00
Michael Kirk b3ddd73cee Merge branch 'mkirk/new-profile-service-scheme' 2017-08-14 15:18:33 -04:00
Michael Kirk 135243e383 CR: variable rename, better comments, fix up tests
// FREEBIE
2017-08-14 15:18:12 -04:00
Michael Kirk 7499b3aaf0 Avatar API integration / WIP crypto scheme
Crypto Scheme:

- Name (un)padding
- WIP AES-GCM (funtioning, but need to verify against android
  implementation, and tag functionality)

Changes to avatar API:

- hard code avatar domain (cdn.signal.org)
- avatar form hands out new avatar key, invalidating old avatar
- preliminary aes-gcm integration

Also:

- New type to represent AES128 keys, rather than passing around opaque
  data blobs everywhere, we can use the compiler to help us make sure
  we're passing compliant keying material.

- Started using factory pattern for API requests. This is intended to be
  a lighter weight way to implement new API requests, rather than the
  current 1-method class ceremony.

// FREEBIE
2017-08-14 12:45:37 -04:00
Michael Kirk 283d36c55b remove avatar digest.
For ease of CDN cache expiry, each new avatar will have a unique URL, so
no need for a separate digest. Contents of file at URL will be verified
by forthcoming crypto scheme.

// FREEBIE
2017-08-11 11:28:38 -04:00
Michael Kirk fc3f9ae396 Replace server sent avatar URL with hardcoded
// FREEBIE
2017-08-11 11:19:05 -04:00
Michael Kirk 3919284433 Merge branch 'mkirk/call-debugging' 2017-08-11 09:26:41 -04:00
Michael Kirk 3d9796db77 Debug actions for calling
For testing stale hangup/busy messages

Extracted MessageSender promise API
Moved call debug actions to their own page

// FREEBIE
2017-08-11 09:21:11 -04:00
Michael Kirk a90f11490b Merge branch 'mkirk/fix-profile-crash' 2017-08-11 09:16:33 -04:00
Michael Kirk 9fdc3202af White listing must happen on main thread
followup to: ee613e4889

Again, this solves a crash, but we'll want to revisit the perf
implications.

// FREEBIE
2017-08-11 09:11:55 -04:00
Michael Kirk 69b75942fd Merge commit '2.15.3.2' 2017-08-11 07:55:09 -04:00
Michael Kirk d29dd5c2b3 Bumping build.
Failed to bump build before tagging 2.15.3.1, so the 2.15.3.1 tag will
not be submitted, and we'll skip right to 2.15.3.2.

// FREEBIE
2017-08-11 07:53:51 -04:00
Michael Kirk 1ee27996e4 Merge branch 'hotfix/2.15.3.1' 2017-08-11 07:42:00 -04:00
Michael Kirk 8da3108b53 Drop stale EndCall/BusyCall messages
// FREEBIE
2017-08-11 07:35:48 -04:00
Michael Kirk 370ce5ba01 Merge branch 'hotfix/2.15.3' 2017-08-10 13:22:21 -04:00
Michael Kirk 4cf860cfe9 pull latest translations
// FREEBIE
2017-08-10 12:20:35 -04:00
Michael Kirk 46e5240f81 bump version
// FREEBIE
2017-08-10 12:19:06 -04:00
Michael Kirk 93d2baa096 [JSQMVC] Fix scrolling crashes
- First occurs when the "Load More Messages" is shown, while scrolling and
  receiving new messages
- Second occurs when scrolling while popping/dismissing the keyboard
  (Not sure if receiving messages was a precondition for this crash)

// FREEBIE
2017-08-10 12:17:42 -04:00
Michael Kirk 0e241299d2 Discard GroupInfoRequest from unknown group
// FREEBIE
2017-08-10 12:17:42 -04:00
Michael Kirk 4f6d91ce6f Merge branch 'mkirk/fixup-tests' 2017-08-09 12:18:18 -04:00
Michael Kirk 40b99a15ed Fix up some tests
Included plausible test implementation for an in-memory profile manager.

Note two tests remain failing (they've been failing for a while)

// FREEBIE
2017-08-09 12:17:03 -04:00
Michael Kirk 620550a462 Merge branch 'mkirk/upload-profile-avatar' 2017-08-09 11:51:19 -04:00
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