Commit Graph

30607 Commits

Author SHA1 Message Date
automated-signal
3a67b6aacb "Bump build to 6.19.0.7." (nightly-03-29-2023) 2023-03-29 04:01:21 -07:00
Evan Hahn
e938ddb591
Add more debug logging for new registration 2023-03-28 21:08:06 -05:00
Harry
53046e41cd
Enable new registration on all builds 2023-03-28 17:38:06 -07:00
Harry
5e37c2f8f9
Updates for verification code entry screen
* Move resend code buttons above keyboard

* add showHelpText to verification code screen state

* hook up help button, does nothing yet

* show help bottom sheet

* lint

* pr feedback
2023-03-28 17:31:58 -07:00
Harry
4f01be0082
Clean up some error handling for registration verification code exhausting attempts
* show back to back errors on verification code screen

* handle verification code attempts exhausted

* let the user resend a code after submission attempts are exhausted

* clear last digit after an incorrectly entered verification code

* wipe errors and allow proceeding when changing e164

* lint
2023-03-28 17:06:29 -07:00
Evan Hahn
c298d7914d
New registration: hide back button in more cases
Specifically, on the CAPTCHA and code verification screens.
2023-03-28 15:18:09 -07:00
Harry
3a78f30ed9
Registration cleanup
* Don't wipe local kbs state when kbs stuff fails for change number; its still valid for the old number

* remove remaining error sheet todos

* fix tests
2023-03-28 14:23:41 -07:00
Harry
e538b76bc5
Show errors for various timeouts during registration
* add error message for rate limiting as it appears in mocks

* update colors in verification code view when theme changes

* Set validation state when we can't submit a verification code yet

* show alert when trying to submit verification code too many times

* handle changing e164 once we have a session

* Handle rate limit for recovery password based registration

* handle rate limit for session based createAccount/changeNumber request

* lint
2023-03-28 13:56:25 -07:00
Sasha Weiss
d5583c059e
Skip offering blocked threads in the ConversationPicker 2023-03-28 12:50:39 -07:00
Sasha Weiss
2eed6927c8
Check if we have a TSGroupMember before inserting in migration 2023-03-28 12:31:33 -07:00
Sasha Weiss
e46307f989
Fall back to snapshot if group change proto has incompatible revision 2023-03-28 12:10:26 -07:00
Evan Hahn
95df4819da
New registration: "Skip and Create New PIN" action 2023-03-28 13:13:24 -05:00
Evan Hahn
5083361aaf Swiftify AppVersion.iosVersionString 2023-03-28 12:43:26 -05:00
Igor Solomennikov
eed90ed89c
Fix some C warnings.
* A function declaration without a prototype is deprecated in all versions of C
* No previous prototype for function `xxx`.
2023-03-28 10:27:03 -07:00
Evan Hahn
2f90a7ef60 "Bump build to 6.19.0.6." (Internal) 2023-03-28 10:52:28 -05:00
Evan Hahn
7cf71793f8 New registration: let users submit debug logs during the process 2023-03-28 10:27:00 -05:00
Harry
7ba5f7384a
Handle being de-registered while still in the middle of registration
* put rereg mode params into a struct for sharability

* add step and UI handling for when we become deregistered during post-reg steps

* handle dereg when syncing push tokens

* show generic error on kbs backup failure

* handle dereg when restoring from kbs

* handle dereg during profile setup steps

* finalize pni stuff before deregistering

* add comment

* change debug fail to log

* Navigate to verification vc before showing popup so that we don't cancel the nav controller pop

* send a session sms code even if we get interrupted right after session creation

* improve state handling for initial session sms code

* nit: make var fileprivate

* show error when state changed on screen
2023-03-28 07:50:56 -07:00
Harry
ab186dbe31
Persist failed pin restoration state across registration "paths" 2023-03-28 08:05:57 -05:00
Harry
545dffd408
New registration: don't say you can continue with new PIN when you can't 2023-03-28 08:04:22 -05:00
automated-signal
e3a17e6859 "Bump build to 6.19.0.5." (nightly-03-28-2023) 2023-03-28 04:01:16 -07:00
Harry
580312e4c7
Remove todo for update account attributes error 2023-03-27 17:09:39 -07:00
Igor Solomennikov
7a717b9c35
Fix an error and some warnings in Xcode 14.3
* Fix name collision.

`UIView.autoPinEdgesToSuperviewEdges(withInsets:)` declared in SignalUI
was doing the same thing as `-[UIView autoPinEdgesToSuperviewEdgesWithInsets:]`
in PureLayout. Xcode 14.3 has started treating this ObjC name collision as an error.

* Fix warnings that would be errors in Swift 6.
2023-03-27 16:36:43 -07:00
Harry
477729a502
Show error on registration captcha rejection; be prepared to handle repeat captchas 2023-03-27 16:30:48 -07:00
Evan Hahn
113bf85eab
Enable new registration for internal builds 2023-03-27 16:30:21 -07:00
Max Radermacher
fd5abb66f7 Fix a few warnings 2023-03-27 16:30:09 -07:00
Harry
02388aac62
Clarification for already handled error cases for new registration
* update comment for reg recovery pw create account handling

* handle prekey generation failure
2023-03-27 16:29:15 -07:00
Evan Hahn
e02273e3ea New registration: better error on challenge submission server error
Similar to 7c9e8f64f2.
2023-03-27 17:53:45 -05:00
Evan Hahn
17cb6756ae
New registration: show generic error for "session invalidated" errors 2023-03-27 17:39:19 -05:00
Igor Solomennikov
b6ba857767 Bring vertical spacing between UI elements in media viewer's bottom panel up to spec. 2023-03-27 15:24:56 -07:00
Igor Solomennikov
23bbc9e2c2 Improve animations for showing/hiding album strip in media viewer. 2023-03-27 15:24:56 -07:00
Igor Solomennikov
d7f9f36422 Improvements for media caption UI in media viewer.
• collapse long captions into 3 lines of text; expand by tap;
• better animations when transitioning between captions.
2023-03-27 15:24:56 -07:00
Evan Hahn
7c9e8f64f2
New registration: better error when session code has a server error 2023-03-27 17:09:18 -05:00
Harry
2f192796d8
Proxy and lockdown mode fixes for new registration
* Eventually time out apns token guarantee

* Don't wait on websocket connection when set proxy settings during registration

* push timeout down into pushRegistrationManager to avoid testing woes
2023-03-27 14:34:26 -07:00
Evan Hahn
f008d084c7
New registration: show screen when PIN guesses exhausted outside reglock 2023-03-27 15:20:29 -05:00
Max Radermacher
52b29a7344
Clean up logic that builds the TSGroupMember table
Also:
* Remove Obj-C support from group member properties
2023-03-27 12:52:54 -07:00
Evan Hahn
a1bbd70b6e New registration: improve error display during profile setup 2023-03-27 14:26:01 -05:00
Evan Hahn
7e15155328
New registration: special string for your last PIN attempt 2023-03-27 12:12:06 -07:00
Max Radermacher
3b751ebd50 Swiftify SignalRecipient.fetchOrCreate callers 2023-03-27 11:30:50 -07:00
Max Radermacher
a254819cc7 Improve performance of link fetcher unit tests 2023-03-27 11:30:21 -07:00
Max Radermacher
0a105cf732 Remove unused NSArray+OWS.[hm] files 2023-03-27 11:30:06 -07:00
Max Radermacher
27da071f71 Improve isRunningTests check 2023-03-27 11:29:49 -07:00
Max Radermacher
4457f6fa90
Swiftify storeLocalNumber 2023-03-27 10:41:10 -07:00
Evan Hahn
1b358ac179
New registration: show correct charset switcher text on PIN screen
We shouldn't say things like "Create alphanumeric PIN" if you're
entering an existing PIN.
2023-03-27 12:37:40 -05:00
Adam Mork
f1378081e6
[Payments] Fix Incorrect Payments State after QR Code Transfer, possible loss of funds
* re-warm caches if payments are disabled, additionally, if re-enabling prefer old payments entropy before generating new payments entropy.

* change implementation of isRegisteredAndReady to use a transaction. Also re-warm caches on registration state changes

* linting
2023-03-27 10:34:10 -07:00
Evan Hahn
4e45c4e50e
Swiftify AppVersion.hardwareInfoString 2023-03-27 10:20:05 -07:00
Evan Hahn
782ef2d3d0
New registration: show (most of) remaining UI on PIN screen
All user-visible changes are on the "existing PIN" operation, but the
other two operations needed some refactors.
2023-03-27 12:07:28 -05:00
Evan Hahn
2b12f3cea7
New registration: apply updates to PIN screen 2023-03-27 11:17:49 -05:00
Evan Hahn
43320fdd44 Swiftify recipient picker "no contacts view" creation
This change should have no user impact and is just a manual translation
from Objective-C to Swift.
2023-03-27 09:32:27 -05:00
automated-signal
cc863d229d "Bump build to 6.19.0.4." (nightly-03-25-2023) 2023-03-25 04:01:10 -07:00
Harry
76b31992b2
Collected nits from registration PR stack
* nits

* remove obsolete assert
2023-03-24 19:40:58 -07:00