Commit Graph

30518 Commits

Author SHA1 Message Date
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
automated-signal
dbaa038160 "Bump build to 6.18.0.2." (nightly-03-17-2023) 2023-03-17 04:00:40 -07:00
Harry
19b38be2d0
Write string e164 to request params 2023-03-16 16:19:19 -07:00
Evan Hahn
73a0ed7b52 Show generic error on transient failure when requesting code from server
If the server gives us a non-permanent failure, we should show a generic
error and let the user continue.
2023-03-16 17:26:50 -05:00
Harry
8f8e74e2b5
Update message processor suspension-related behavior
* use set of enums for message suspensions

* Update meaning of isDrainingPendingEnvelopes

* rename messageProcessorDidFlushQueue -> ...DidDrainQueue
2023-03-16 14:23:10 -07:00
Harry
e6e4502363
Update RegCoordinator's requests in preparation for pni change number
* add whoami request to reg coordinator

* Add pni change number params to reg bravo change number request

* Remove username as a requirement for reg coordinator's account identity

* pr feedback
2023-03-16 13:59:50 -07:00
Harry
5d8b3a0098
Add ChangePhoneNumberPniManagerMock 2023-03-16 12:40:09 -07:00
Harry
a31fb00368
Change all e164 references in reg coordinator to E164 type 2023-03-16 11:32:13 -07:00
Max Radermacher
6640819e46 Fix missing selector when sending messages 2023-03-16 11:31:04 -07:00
Harry
be743e4862
remove unused transaction param on pni change number 2023-03-16 11:27:49 -07:00
automated-signal
954b370e43 "Bump build to 6.18.0.1." (nightly-03-16-2023) 2023-03-16 04:00:38 -07:00
Max Radermacher
22d23b688a Refactor common logic in SignalServiceAddressTest 2023-03-15 17:10:10 -07:00
Evan Hahn
faa8569d4a
Show generic errors in new registration
I also found a few spots where I failed to identify network errors in
366c08ac1b. This updates those.
2023-03-15 17:38:41 -05:00
Evan Hahn
2f15556db7 Show invalid phone number dialog during new registration
We already showed an error message. Now we show an error dialog, too.
2023-03-15 16:59:53 -05:00
Harry Sanabria
80eb870b1c "Bump build to 6.18.0.0." (nightly-03-15-2023) 2023-03-15 14:23:00 -07:00
Harry Sanabria
af95da4d46 Update translations 2023-03-15 14:22:31 -07:00
Evan Hahn
366c08ac1b Show UI for registration network errors 2023-03-15 16:15:50 -05:00
Evan Hahn
f415335d1b
Add (dormant) reglock timeout screen 2023-03-15 15:41:36 -05:00
Igor Solomennikov
99a2a14785
Show album message in media viewer if there's no per-media caption. 2023-03-15 11:57:05 -07:00
Igor Solomennikov
de8c24d345
Media viewer improvements.
Change appearance of controls in media viewer:
 • use dark chrome background for top and bottom panels.
 • move "Delete" into (•••) submenu at the top.

Appearance tweaks for media album strip at the bottom of media viewer. 
 • update design to latest spec.
 • make media strip view configurable (border color and width, size, corner rounding).
2023-03-15 11:55:04 -07:00
Evan Hahn
0b11f3be3c
Compute bench message a little later
This change should have no user impact. All I did was move some lines
down.
2023-03-15 11:53:32 -07:00
Igor Solomennikov
71cbc9d80d
Rename OWSVideoPlayer to VideoPlayer and stop exposing class to ObjC. 2023-03-15 11:52:19 -07:00
Evan Hahn
f5bd3b95fe
Add (dormant) "app needs to be updated" alert during registration
If your app needs to be updated during registration, we'll show an
alert. This can happen if:

- The build has expired
- We receive an unexpected challenge (or a push challenge we cannot
  fulfill, but must)
2023-03-15 12:54:42 -05:00
Evan Hahn
91c841dc3c Merge redundant callingCode(fromCountryCode:) tests
This test-only change should have no user impact.

`PhoneNumberUtil.callingCode(fromCountryCode:)` was tested in two
places. This combines them and moves the tests to Swift.
2023-03-15 12:41:19 -05:00
automated-signal
b4a06e65b4 "Bump build to 6.17.0.4." (nightly-03-15-2023) 2023-03-15 04:00:35 -07:00