Commit Graph

30542 Commits

Author SHA1 Message Date
Harry
4ee467be2b
Add screens unique to change number to new registration flow
* Add splash controller for change number flow

* Add copy of change number phone number entry controller

* add copy of change number confirmation view controller

* hook up change number phone number entry screens

* fix header color

* fix change number error view

* add some spacing before error label

* run auto genstrings

* actually fix string comment
2023-03-24 12:32:59 -07:00
Sasha Weiss
5d7241d038
Add parsing support for the pni capability 2023-03-24 10:07:39 -07:00
Evan Hahn
87b4fb1f06 Use old "update local phone number" method to fix build 2023-03-24 10:10:04 -05:00
automated-signal
6c31e7904f "Bump build to 6.19.0.3." (nightly-03-24-2023) 2023-03-24 04:01:05 -07:00
Sasha Weiss
56ba9f3d7a
Atomically persist values from change-number 2023-03-23 16:50:59 -07:00
Max Radermacher
b83902774e
Clean up RecipientMerger.mergeHighTrust 2023-03-23 14:48:47 -07:00
Max Radermacher
cf8593bbe3
Add tests for 2-way contact merging logic 2023-03-23 14:00:52 -07:00
Max Radermacher
ebf6b8f5e7
Support PNIs in SignalServiceAddress 2023-03-23 12:43:01 -07:00
Sasha Weiss
be4b132ea6
Rename StorageServiceManagerProtocol 2023-03-23 09:29:38 -07:00
automated-signal
f425df152a "Bump build to 6.19.0.2." (nightly-03-23-2023) 2023-03-23 04:01:04 -07:00
Max Radermacher
fa7f0e98fa
Clear “display badge” when your last badge expires
Also, explicitly track “old badges” vs. “new badges” when redeeming.
2023-03-23 00:32:42 -07:00
Max Radermacher
64e5ad5019 Stop using deprecated UILocalNotification API 2023-03-22 18:34:39 -07:00
Max Radermacher
4f64cf1c12 "Bump build to 6.19.0.1." (nightly-03-22-2023) 2023-03-22 16:35:58 -07:00
Max Radermacher
09d38fcf68 Update to Xcode 14.2 2023-03-22 16:34:51 -07:00
Sasha Weiss
8d1340b2da
Pass argument through to recursive call to processingCompletePromise 2023-03-22 14:38:04 -07:00
Max Radermacher
ca1e4e1202 Update Fastlane to 2.212.1 2023-03-22 14:20:34 -07:00
Evan Hahn
997de810b8 New registration PIN screen: move button to bottom 2023-03-22 15:00:26 -05:00
Max Radermacher
ae2b290a07
Use ServiceId in message sending code
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
2023-03-22 12:25:05 -07:00
Evan Hahn
5477d1706f "Bump build to 6.19.0.0." (nightly-03-22-2023) 2023-03-22 12:36:31 -05:00
Evan Hahn
054487ea53
Update translations 2023-03-22 12:36:05 -05:00
Evan Hahn
dbfca63178
Update release notes 2023-03-22 12:33:15 -05:00
Harry
19c69db4cf
Allow device transfer from reg bravo 2023-03-22 10:20:56 -07:00
Harry
c0444ff246
Wait a short time for push challenges before preferring captcha 2023-03-22 09:33:41 -07:00
Harry
59c164d849
Show reg bravo loading controller between all steps 2023-03-22 09:24:14 -07:00
Harry
68f34d10cd
Let the user change e164 after entering one in registration bravo
* Allow changing e164 after entering one + tests

* hook up back to change number from sms code verification screen

* nit

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>

* nit 2

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>

---------

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
2023-03-22 07:52:34 -07:00
Evan Hahn
0c5ab8b09d
New registration: confirm "skip PIN" 2023-03-22 09:43:37 -05:00
automated-signal
6aa32eb483 "Bump build to 6.18.0.6." (nightly-03-22-2023) 2023-03-22 04:00:58 -07:00
Evan Hahn
492284cab6
New registration: warn about remaining PIN attempts 2023-03-21 17:37:06 -05:00
Pete Walters
fdaf6764e3
Fix stuck voice memo UI (#6050) 2023-03-21 15:36:01 -05:00
Igor Solomennikov
e4b2ad1757
Add Rewind and Fast Forward buttons to video player for videos over 30 sec long. 2023-03-21 11:29:22 -07:00
Evan Hahn
0cda2d601f New registration: show generic error for unretained self
I missed a spot in faa8569d4a.
2023-03-21 12:22:05 -05:00
Evan Hahn
5959701090 Remove two "TODO" comments we've already addressed
This change should have no user impact. It's just removing TODOs.
2023-03-21 12:21:34 -05:00
Evan Hahn
9ba0be7ecc
New registration: gate phone number discoverability on feature flag 2023-03-21 12:20:34 -05:00
Evan Hahn
1eb840737c New registration verification code screen: show validation errors 2023-03-21 12:12:11 -05:00
Evan Hahn
15c27437e9
Remove websocket feature flag
This change should have no user impact.

This has been enabled for almost a year (see
1ef694e241). Let's assume it's always
enabled and remove it.
2023-03-21 09:28:45 -07:00
Evan Hahn
319582e7cb
Use unsigned ints for PIN attempts
This change should have no user impact. I think it's useful on its own
but it also makes a future task easier.

You can't ever have a negative number of remaining PIN attempts, so I
made sure we're using unsigned ints everywhere.

We also had two identifiers for "remaining attempts" (`triesRemaining`
and `remainingAttempts`) so I standardized it.
2023-03-21 08:57:26 -07:00
Evan Hahn
eff8c4c2a3 Support attributed strings in action sheet messages
This change should have no user impact, but makes a future change
easier.

`ActionSheetController` supports string messages, but now it also
supports `NSAttributedString` messages. That lets us include styling
(like bold) and links.
2023-03-21 10:55:46 -05:00
Evan Hahn
6083ddd456 Clean up OWSActionSheets
This change should have no user impact.

This makes a few changes to `OWSActionSheets`:

- `OWSActionSheets` is now an enum (with an Objective-C bridge)
- Some unnecessary methods were removed
- Fixed some long lines

It also removes the payment-specific
`OWSActionSheets.showPaymentsOutdatedClientSheetIfNeeded` extension. It
didn't add much and required passing a global object, so I removed it.
2023-03-21 10:55:46 -05:00
Evan Hahn
edf1963428
New registration PIN entry: update "learn more" and "skip" UI 2023-03-21 08:55:02 -07:00
Evan Hahn
98ba4e3023
Add skeleton account data export screen 2023-03-21 08:37:59 -05:00
automated-signal
5cc30bfb2e "Bump build to 6.18.0.5." (nightly-03-21-2023) 2023-03-21 04:00:54 -07:00
Evan Hahn
a77b45c6de Remove Dependencies from the three launch jobs
This change should have no user impact.

`FailedMessagesJob`, `IncompleteCallsJob`, and
`FailedAttachmentDownloadsJob` used to inherit from `Dependencies`. Now,
they explicitly take their one dependency: a database.

I also made a few methods private because they didn't need to be
exposed.
2023-03-20 11:01:29 -05:00
Evan Hahn
c17eddc5b3 Change an error message to a warning
This can happen under normal conditions, so it should be a warning.
2023-03-20 08:17:17 -05:00
Evan Hahn
63bdeb5cf4
Update SignalCoreKit to get Guarantee's nilTimeout
See [the SignalCoreKit commit][0] we're pulling in.

[0]: 75f61972e0
2023-03-20 08:11:24 -05:00
automated-signal
f9c9b0eccd "Bump build to 6.18.0.4." (nightly-03-20-2023) 2023-03-20 04:00:50 -07:00
Harry
0297ecf615
Test re-registration in RegCoordinatorTests
* parametrize reg coordinator tests

* test re-registration via test suite param
2023-03-19 16:07:25 -07:00
automated-signal
d73b1e9774 "Bump build to 6.18.0.3." (nightly-03-18-2023) 2023-03-18 04:00:44 -07:00
Harry
5ad17c4f2d
Support change number in registration coordinator
* Factor out RegistrationCoordinatorLoader

* Add PNI change number state to regcoordinatorloader

* Don't exit change number flow once we start a pni operation

* Add ChangePhoneNumberPniManager to reg coordinator dependencies

* add params required for pni to change number registration mode

* change number from regcoordinator

* rename ChangePhoneNumber -> LegacyChangePhoneNumber

* remove pni change number support from LegacyChangePhoneNumber

* remove codable conformance from pni change number manager's pending state

* Update ts account manager state when finalizing change number

* Add message processor deps to reg coordinator

* addAsyncCompletion on dbv2 write transactions

* Suspend message processing while doing a reg coordinator change number

* hook up change number

* Add handler-free message processing suspension method

* odds and ends

* minor cleanup

* slight refactor to finalize change phone number in the export function

* Put wait for message processing + suspend onto messageProcessor

* kick of prekey refresh after pni change number finalize transaction ends

* nit
2023-03-17 17:55:06 -07:00
Harry
fbd00c88b1
guard usernames megaphone on usernames feature flag 2023-03-17 10:25:25 -07:00
Evan Hahn
2c7a8a8feb New registration: update step when dismissing error sheet
When a registration error is dismissed, we now call `nextStep()` (and
push the corresponding view controller). Sometimes, this will do
nothing. Sometimes, it will take you to a new screen.

As a "proof-of-concept", I updated our server failure handling code. We
want to bonk the user back to the phone number registration screen.
2023-03-17 07:43:48 -05:00