Commit Graph

30672 Commits

Author SHA1 Message Date
Max Radermacher
5e5a48ffe9 Update release notes 2023-04-06 13:53:52 -07:00
Sasha Weiss
6bf75ccf5d
Add number of forwarded media to prompt 2023-04-06 13:50:41 -07:00
Max Radermacher
9983a7df4d "Bump build to 6.20.0.8." (nightly-04-06-2023) 2023-04-06 13:10:40 -07:00
Max Radermacher
1a2a3470c1 Improve performance of SignalServiceAddressCache 2023-04-06 13:08:51 -07:00
Harry
a7047fd56e
Catch e164 drift during re-reg and correct it 2023-04-06 14:55:30 -05:00
Sasha Weiss
c7f4fcd860
Update verified status in safety number confirmation sheet 2023-04-06 12:11:52 -07:00
Evan Hahn
e5fd132778
Registration: fix leading 0 being added 2023-04-06 14:05:28 -05:00
Evan Hahn
5cd752cb97 Remove gifting flags; it's always enabled
This change should have no user impact. I removed remote config flags
and dealt with all the fallout from that change.
2023-04-06 13:56:42 -05:00
Harry Sanabria
7c6cfe51fd Add logging for registration startup including which mode we are in 2023-04-06 13:49:44 -05:00
automated-signal
4ce9c9fa17 "Bump build to 6.20.0.7." (nightly-04-06-2023) 2023-04-06 04:00:46 -07:00
Max Radermacher
037da84de1 Fix change number obsolete profile handling 2023-04-05 16:33:05 -07:00
Evan Hahn
9e18a245df Swiftify AppVersion, stop storing properties
This commit:

- Converts `AppVersion` to Swift
- Creates `AppVersionForObjC` as a bridge
- Stops storing many properties; instead, pulls them off `UserDefaults`
  as needed
2023-04-05 16:02:58 -05:00
Sasha Weiss
c8b9620f65
Add confirmation to forward-from-media-page flow 2023-04-05 13:47:32 -07:00
Sasha Weiss
878bb38ce0
Remove owsAssert in favor of owsAssertDebug in fetchModel 2023-04-05 13:33:58 -07:00
Evan Hahn
3804ed76a5
Move app version off Dependencies and NSObject
This change should have no user impact.

`appVersion` used to be a property of `Dependencies` and `NSObject`. It
just deferred to `AppVersion.shared()`.

This commit removes those properties and relies on `AppVersion.shared`
instead. Also, `AppVersion.shared` is now a getter, not a function.
2023-04-05 13:29:49 -07:00
Evan Hahn
0fb7d4a659 AppVersion: no special cases for tests
This change should have no user impact...and also has no impact on our
tests!
2023-04-05 15:27:01 -05:00
Evan Hahn
2895b84ef1
Database recovery: REINDEX as a first step
*I recommend reviewing this with whitespace changes disabled.*
2023-04-05 15:21:16 -05:00
Evan Hahn
e4fed83a8b Fix share sheet hack not dismissing in some cases
Sometimes, `UIActivityViewController` will dismiss the parent view
controller on completion. We have a hack to get around that: present an
invisible VC behind the share sheet. When the share sheet is done, we
dismiss the invisible VC.

However, if you share to an app that crashes (which is out of our
control), we won't always dismiss the invisible VC. I don't know why
this is, but double-dismissing VC works.
2023-04-05 09:54:55 -05:00
automated-signal
abf0ba5bfe "Bump build to 6.20.0.6." (nightly-04-05-2023) 2023-04-05 04:00:43 -07:00
Evan Hahn
d29bc6225e Entering the wrong verification code clears the whole field
Instead of just the last digit.
2023-04-04 17:44:52 -05:00
Evan Hahn
ac819344d9 Fix incorrect localization comments for registration string 2023-04-04 17:39:04 -05:00
Evan Hahn
580c1fdcd4 New registration: show PIN warning correctly 2023-04-04 17:08:52 -05:00
Evan Hahn
6f87a918b0 New registration: disable swipe to pop gesture 2023-04-04 16:51:55 -05:00
Harry
224e5a7c6b
Parse text formatting styles in MessageBody
* add deserialization test for MessageBodyRanges

* Add style ranges to MessageBodyText

* add deserialization tests and fix small other test

* add basic mention hydration tests

* Add RTL support for @mention hydration

* Add a test with accents for unicode shenanigans

* unique-ify TODOs

* Add emoji test and fix implementation to account for multi-point unicode that is captured in NSString.length but not String.count

* Add more TODOs for text formatting

* Collapse style ranges on init

* Handle mention overlaps on MessageBodyRanges init

* add tests, update existing tests, fix bugs

* Update v2 deserialization test; the meaning of Style raw values has changed

* comment nit
2023-04-04 12:46:09 -07:00
Evan Hahn
1d0228312b
Account data report: add subtitle to export button 2023-04-04 11:10:44 -05:00
automated-signal
054d37d608 "Bump build to 6.20.0.5." (nightly-04-04-2023) 2023-04-04 04:00:39 -07:00
Sasha Weiss
406d44d396
Move SDSCodableModel database methods to separate object 2023-04-03 15:21:07 -07:00
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