Commit Graph

492 Commits

Author SHA1 Message Date
Chris Eager
b66e80dd21 Update message reporting to use sender ACI instead of E164 2022-03-28 16:23:51 -07:00
Evan Hahn
de105468a4 Assume everyone is GV2-capable 2022-03-22 17:11:57 -05:00
Jordan Rose
39042a8234 Create PNI identity keys and pre-keys upon registration
This doesn't handle
- device linking (we need to send the PNI identity key as well as the
  ACI identity key)
- existing devices that need PNI keys (that'll be an explicit check)
2022-03-18 12:34:11 -07:00
Dimitris Apostolou
62724cf0be Fix typos 2022-03-18 11:31:06 -07:00
Martin Böttcher
eedfd70f3e merged master and pod files 2022-03-15 12:49:11 +01:00
Jordan Rose
a9b9f58d0e Update clang-format with AllowShortEnumsOnASingleLine: false
And apply it to our sources.
2022-03-14 11:20:20 -07:00
Jon Chambers
f642376631 Accept HTTP/429 as a "rate-limited" status code 2022-03-10 16:03:56 -05:00
Martin Böttcher
8f9be31ba3 replaced NSLocalizedStringFromAppBundle with OWSLocalizedString 2022-03-08 10:17:25 +01:00
Michelle Linington
e00e43ec95 Perform CDS requests against HSM backed service 2022-02-22 12:41:04 -08:00
Michelle Linington
aadd176cb9 Add CDS Constants 2022-02-22 12:41:04 -08:00
Michelle Linington
1075bae92b Merge branch 'release/5.27.2' 2022-02-08 16:35:11 -08:00
Michelle Linington
a557af0603 Lint 2022-02-08 15:42:01 -08:00
Michelle Linington
0e2d6a3e7f IOS-866: Endless captcha
Fixes an issue where we would fail to respect the retry-after header of
a failed send response.
2022-02-08 15:19:15 -08:00
Nora Trapp
41dd7a14d9 Add support for IASv4 enclaves 2022-01-27 15:58:47 -08:00
Jordan Rose
a31100f0f5 Fix copyrights 2022-01-26 09:50:56 -08:00
Jordan Rose
01518551eb Import SignalMetadataKit wholesale into SignalServiceKit
The only modifications are those necessary to build as part of SSK.
The follow-up commits will clean that up a bit.
2022-01-26 09:50:55 -08:00
Nora Trapp
a2f51dc4a3 Cleanup old feature flags 2022-01-24 10:53:55 -08:00
Nora Trapp
513a37892e Tweak change phone number feature flags 2022-01-21 10:16:35 -08:00
Michelle Linington
e3bf2965af Lint 2022-01-06 11:26:06 -08:00
Michelle Linington
378e58431f Bug fix for lost avatars on profile update
Following a profile update, we need to reupload the avatar. Currently
we're uploading the avatar by writing it to a temporary file and kicking
off an NSURLSessionUploadTask.

If Class A keys aren't available, we'd fail to complete the upload. This
would remove the user's avatar from their profile.
2022-01-06 11:26:06 -08:00
Jordan Rose
d263372571 SSK: Copy in AFNetworking's multipart form data encoding impl
Matthew previously stripped this down in our fork of AFNetworking; at
this point there's no benefit to it living in a separate repo and
separate target.
2021-12-17 14:40:25 -08:00
Nora Trapp
9ed5e74b79 Sync additional badge info with storage service 2021-12-17 13:54:20 -08:00
Michelle Linington
8a19b8ed34 Merge branch 'release/5.26.4' 2021-12-06 13:06:06 -08:00
Michelle Linington
3d695404ab VisibleBadgeIds is now nonnull on PendingProfileUpdate
A nil array would clear badges anyway. This makes things a bit more
explicit. Also improves some logging.
2021-12-06 12:06:19 -08:00
Matthew Chen
1e05779c28 Change phone number. 2021-11-19 14:28:20 -03:00
Matthew Chen
fc749b4d72 Change phone number. 2021-11-19 14:28:18 -03:00
Nora Trapp
8107430ca3 Don't include stripe details in logs 2021-11-18 13:29:59 -08:00
Nora Trapp
02e35131f4 Fix the 'online' flag for sender key messages 2021-11-18 11:20:17 -08:00
Nora Trapp
355fd82e07 Add remote config for donor badges 2021-11-17 16:22:19 -08:00
Nora Trapp
18a7ad8b2c Fix badge visibility on acquisition 2021-11-17 16:05:58 -08:00
Nora Trapp
55664bde4c Remove description from boost creation 2021-11-16 15:49:39 -08:00
Nora Trapp
faba7621b3 Include the donor's email address for receipt purposes in the billing information 2021-11-16 15:39:39 -08:00
Nora Trapp
c89b0016f6 Add boost thank you flow 2021-11-16 11:40:40 -08:00
Michelle Linington
94c05bad09 Actually persist badge settings
- Augment profile settings to actually record the user's badge
  preferences
- Save these changes to the profile endpoint
2021-11-16 09:55:58 -08:00
Nora Trapp
095b54d13d Add boost view controller 2021-11-15 13:24:58 -08:00
Nora Trapp
e14b19e3db Hookup rudimentary plumbing for boost 2021-11-15 13:24:58 -08:00
Eugene Bistolas
b3d1bdefd1 [Donor Badges] Current subscriber UI 2021-11-09 18:29:55 -10:00
Eugene Bistolas
64f126ae3f [Badging] Badge receipt credential fetch and redemption 2021-11-09 14:26:05 -08:00
Eugene Bistolas
858e3ef1c6 [Badging] Set up new subscription on server / stripe 2021-11-09 14:25:55 -08:00
Eugene Bistolas
57e3e2fb56 Badging: Sustainer subscription level UI 2021-11-09 14:25:55 -08:00
Michelle Linington
dea35199b2 Clean up ConversationAvatarView data sources
Creates a special data source enum for ConversationAvatarView data
providers. Before, ContactCell and ConversationAvatarView used the data
source, neither applying to each perfectly
2021-11-09 14:25:55 -08:00
Michelle Linington
ff3d21ff0e Minor tweaks to recent badging changes
- Optionals are now SDSSwiftSerializable as long as their wrapped type
  conforms
- Avatar file writes are now performed outside of a write transaction
- Various rebase cleanup
2021-11-09 14:25:53 -08:00
Michelle Linington
ebadb12dad Minor comment tweaks, schema adjustments 2021-11-09 14:25:42 -08:00
Michelle Linington
fa0d10f047 Firm up database schema 2021-11-09 14:25:42 -08:00
Michelle Linington
5f6ee31e68 Most of badge fetching and persistence
Saving progress before running database codegen
2021-11-09 14:25:42 -08:00
Michelle Linington
500bc216a4 A handful of tiny changes
- GiphyAPI kept no internal state, no need to instantiate a singleton
  for it
- Better logging of what prevented us from completing our NSE wake
- Fixes a bug where we fail to generate sync messages in the NSE while
  locked
2021-11-02 14:46:00 -07:00
Matthew Chen
153095a500 Reduce statics. 2021-11-02 10:36:25 -03:00
Matthew Chen
91ad7d1df7 Respond to CR. 2021-10-21 09:21:31 -03:00
Matthew Chen
5d780d1589 Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
Matthew Chen
1b655d63f5 Reduce async work done on NSE launch. 2021-10-21 08:53:15 -03:00