Commit Graph

30645 Commits

Author SHA1 Message Date
Max Radermacher
53351b03fb
Swiftify didFinishLaunchingWithOptions 2023-04-03 14:58:19 -07:00
Evan Hahn
7651543b90
Enable account data report for internal users 2023-04-03 15:04:13 -05:00
Evan Hahn
16d642fb83 Fix compile error with registration enum
I accidentally introduced this in
4bf5f44be1.
2023-04-03 14:39:50 -05:00
Max Radermacher
2b78dc9c3f Swiftify MainAppContext 2023-04-03 11:55:46 -07:00
Evan Hahn
4bf5f44be1
Rename enum case in new registration
This change should have no user impact. All it does is rename
`.pinAttemptsExhaustedAndMustCreateNewPin` to
`.pinAttemptsExhaustedWithoutReglock`.
2023-04-03 11:24:24 -07:00
Evan Hahn
3e7fdb0e2c
Account data report: let users export text 2023-04-03 12:17:28 -05:00
Evan Hahn
68cb42873c Symbolicate script: error when symbolicated file looks the same 2023-04-03 12:17:00 -05:00
automated-signal
3db2bc1edc "Bump build to 6.20.0.4." (nightly-04-01-2023) 2023-04-01 04:00:31 -07:00
Sasha Weiss
be4bef922b
Move code that causes Xcode to lag to separate file 2023-03-31 13:38:17 -07:00
sashaweiss-signal
2985e98b7a Avoid unnecessary owsFailDebug 2023-03-31 15:35:31 -05:00
Evan Hahn
535a770447 Update to SQLCipher 4.5.3
This updates SQLCipher from 4.5.2 to 4.5.3.

All I did was run `bundle exec pod update SQLCipher`.

According to the [SQLCipher changelog][0], this updates SQLite from
3.39.2 to 3.39.4. You may wish to review [the SQLite changelog][1].

[0]: https://github.com/sqlcipher/sqlcipher/blob/v4.5.3/CHANGELOG.md
[1]: https://www.sqlite.org/releaselog/3_39_4.html
2023-03-31 14:40:37 -05:00
Evan Hahn
d7cfbb64cf Account data report: add header to UI 2023-03-31 07:32:48 -05:00
automated-signal
3432b244dd "Bump build to 6.20.0.3." (nightly-03-31-2023) 2023-03-31 04:00:28 -07:00
Pete Walters
d702a39286 Add EditMessage protos 2023-03-30 15:16:53 -05:00
Max Radermacher
93ca9f31c5
Fix a few NSNotification.Name values 2023-03-30 13:08:02 -07:00
Harry
9edc36e63a
Update BodyRange proto definition for rich text 2023-03-30 12:30:13 -05:00
Harry Sanabria
c4199db837 "Bump build to 6.20.0.2." (nightly-03-30-2023) 2023-03-30 09:37:45 -07:00
Evan Hahn
47480b7eee Speed up "mark read locally" optimization check
This should cause no change in behavior.

We had logic like this pseudocode:

```
unreadCount = db.countUnreadMessages()
messagesWithUnreadReactionsCount = db.countMessagesWithUnreadReactions()
if unreadCount == 0 && messagesWithUnreadReactionsCount == 0 {
  // Avoid unnecessary writes.
  return
}

db.markMessagesRead()
```

This optimization works but has two problems:

1. We don't actually need the count. We just need to know whether
   anything exists.
2. If there are unread messages, we should do the cleanup regardless,
   and we don't need to do the second check query.

Now the pseudocode looks like this:

```
if db.hasUnreadMessages() || db.hasMessagesToMarkRead() {
  // Avoid unnecessary writes.
  return
}

db.markMessagesRead()
```
2023-03-30 10:22:50 -05:00
Evan Hahn
fd37f7b0ac Account data report: export a file 2023-03-30 10:22:25 -05:00
Evan Hahn
6598f53d3f
Swiftify AppVersion.compare
I also require all version components to be unsigned integers, so `1.-2`
is now effectively `1.0`.
2023-03-30 10:19:59 -05:00
Harry
b07c02d791
Prevent looping when hitting reglock in new registration 2023-03-30 08:55:29 -05:00
automated-signal
60bb64d7ba "Bump build to 6.20.0.1." (nightly-03-30-2023) 2023-03-30 04:00:25 -07:00
Max Radermacher
d047a669fa
Remove throws_ handling for incoming messages 2023-03-29 18:40:30 -07:00
Max Radermacher
aaf1d0e0b6
Clean up SignalRecipient create & fetch APIs 2023-03-29 18:40:05 -07:00
Max Radermacher
dc4c9fe1d6
Swiftify verification state processing logic 2023-03-29 17:37:02 -07:00
Max Radermacher
38236e9f8f Run all precommit steps even when some fail 2023-03-29 16:00:27 -07:00
Harry
7266b45839
Remove obsolete PNI TODO 2023-03-29 15:38:35 -07:00
Evan Hahn
b042c42732 Remove new registration build target
This change should have no user impact.

Now that registration is enabled for all builds (see
53046e41cd), we can remove this build
target.
2023-03-29 17:02:10 -05:00
Igor Solomennikov
17850cb3ec
Fix double (+) button in media composer flow 2023-03-29 15:00:00 -07:00
Evan Hahn
227340ce92 Account data report: show loading spinner
I recommend reviewing this with whitespace changes disabled because a
lot of stuff was indented but not otherwise changed.
2023-03-29 15:53:18 -05:00
Max Radermacher
fce112751a Swiftify sync request message handling 2023-03-29 13:39:22 -07:00
Evan Hahn
a87d2853c1 Account data report: confirm before sharing export 2023-03-29 14:52:02 -05:00
sashaweiss-signal
36cb2e30ed "Bump build to 6.20.0.0." (nightly-03-29-2023) 2023-03-29 10:31:10 -07:00
sashaweiss-signal
82b7aae5ad Update translations 2023-03-29 10:30:47 -07:00
sashaweiss-signal
991f3b96e8 Update release notes 2023-03-29 10:25:25 -07:00
Harry
d0b8d1b446
Dont animate a pop away from a reg loading view controller 2023-03-29 09:30:40 -07:00
Harry
f7bc793ae9
Make SystemStoryManagerTest synchronous to end its reign of flaky terror
* Use schedulers with ChainedPromise

* Add full queue initializer redirection in Schedulers

* pass scheduler to OWSURLSession

* Use schedulers in SystemStoryManager

* make SystemStoryManagerTest synchronous
2023-03-29 08:47:49 -07:00
Evan Hahn
0d6da58045
Add very basic account data export functionality
The UI is not ready for release, but the basic parts are there.
2023-03-29 10:34:12 -05:00
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