Commit Graph

29360 Commits

Author SHA1 Message Date
Harry Sanabria
d64a850be0 Fix native context menu icon sizes 2022-10-07 07:49:41 -07:00
Nora Trapp
93295d467e "Bump build to 5.58.0.3." (nightly-10-07-2022) 2022-10-07 04:01:28 -07:00
Igor Solomennikov
f01f4d4a7c Fix no rounded corners for gradient backgrounds in text story composer. 2022-10-06 22:00:38 -07:00
Evan Hahn
9274b67d86 Swiftify proto parsing test
I also moved it to the `SignalServiceKit` tests because it's part of
that target, not the `Signal` target.
2022-10-07 01:07:31 +00:00
Max Radermacher
61fd33fa07 Remove redundant property assignments 2022-10-06 17:10:46 -07:00
Nora Trapp
fe07005801 Tag story deletions as story sends 2022-10-06 15:35:54 -07:00
Jim Gustafson
25302d3206
Update to RingRTC v2.21.2 2022-10-06 15:34:21 -07:00
Nora Trapp
1ffb8332a2 Flatten mentions when sharing text to stories 2022-10-06 15:26:10 -07:00
Sasha Weiss
61a4d30150
DRY out dismissLastPresented 2022-10-06 15:21:54 -07:00
Evan Hahn
81e1f9a9d0 Disable SwiftLint on third-party files
This skips the `Pods/` and `ThirdParty/` directories when running
SwiftLint.
2022-10-06 15:16:11 -07:00
Harry Sanabria
1fac9e7797 Add header to 1:1 story reply sheet 2022-10-06 15:15:40 -07:00
Harry Sanabria
414d07db64 force delete action sheet on story replies to be dark theme 2022-10-06 15:15:40 -07:00
Evan Hahn
0ddeacf067 SwiftLint should skip files where it crashes due to a bug
SwiftLint has a bug that prevents 2 of our files from being linted. This
skips those files (and links to the bug).
2022-10-06 15:15:20 -07:00
Evan Hahn
836a891204
Use #unavailable where possible, fixing SwiftLint violation
This fixes violations of [SwiftLint's `unavailable_condition` rule][0].
We can now do this because we're on Xcode 14.

[0]: https://realm.github.io/SwiftLint/unavailable_condition.html

Co-Authored-By: Sasha Weiss <sasha@signal.org>
2022-10-06 17:14:49 -05:00
Evan Hahn
349681ff85
Attempt to recover corrupted databases
If a user's database is corrupted, we now try to fix it. I recommend
reviewing `DatabaseRecovery` to see how this works, and
`DatabaseRecoveryViewController` for the bulk of the UI.
2022-10-06 16:42:19 -05:00
Nora Trapp
2fa8a64b6d Strip the URL from messages when sharing to stories 2022-10-06 14:35:48 -07:00
Evan Hahn
1b098806ef
Disable two SwiftLint rules
This disables [`block_based_kvo`][0], which we probably want to
re-enable eventually, but we're not going to do it now.

It also disables [`notification_center_detachment`][1]. I don't think we
ever want to enable this one. Even if that's wrong, we'd like to disable
it for now, too.

[0]: https://realm.github.io/SwiftLint/block_based_kvo.html
[1]: https://realm.github.io/SwiftLint/notification_center_detachment.html
2022-10-06 15:46:20 -05:00
Harry
6c39864171
Story group reply sheet fixes
* dont set group reply bottom bar constraint before view loaded

* fix group reply sheet appearance directly to replies
2022-10-06 13:16:12 -07:00
Nora Trapp
3e9f51e512
Fix some stories strings 2022-10-06 13:06:48 -07:00
Harry
6aa417a41c
Hide/Delete story tweaks
* sort system stories normally after viewing

* scroll to hidden stories after hiding (or unhiding). Scroll to hidden story section after expanding

* if hiding/unhiding/deleting a story from within a viewer, proceed to the next story or context and remove the previous one from the viewer
2022-10-06 13:01:58 -07:00
Harry
86cdf19167
listen for onboarding story changes and update badge count 2022-10-06 12:58:44 -07:00
Harry Sanabria
039571e440 Fix legacy onboarding story cleanup 2022-10-06 12:10:27 -07:00
Sasha Weiss
ca55438e92
Remove special string from IntroducingPINs 2022-10-06 11:43:16 -07:00
Sasha Weiss
2c50cce85a
Clean up some dead code around experience upgrades 2022-10-06 13:28:41 -05:00
Nora Trapp
3735ec1b68 "Bump build to 5.58.0.2." (Internal) 2022-10-06 11:20:26 -07:00
Nora Trapp
556abddc64 Update the storiesDisabled flag in the accountRecord 2022-10-06 11:08:58 -07:00
Nora Trapp
d34a9da1e2 Fix stories incorrectly being disabled on upgrade 2022-10-06 11:08:58 -07:00
Nora Trapp
5065e898d4 Rev the storiesDisabled storage service field 2022-10-06 11:08:58 -07:00
Nora Trapp
3438fc0fed Allow delete messages to be tagged as stories 2022-10-06 11:08:58 -07:00
Nora Trapp
0d5a13da3c "Bump build to 5.58.0.1." (nightly-10-06-2022) 2022-10-06 04:01:05 -07:00
Evan Hahn
760e5c1c97
Add PNI registration ID to account attributes
Like "regular" registration IDs, this attaches a PNI registration ID to
account attributes. It's already synced at the right times (see
[`updateAccountAttributesIfNecessaryAttempt`][0]).

Tested this by registering and seeing the payload correctly sent to the
server.

See also: [Android's implementation][1].

[0]: 487405ef08/SignalServiceKit/src/Account/TSAccountManager.swift (L137)
[1]: 6e5f28339d/libsignal/service/src/main/java/org/whispersystems/signalservice/internal/push/PushServiceSocket.java (L378)
2022-10-05 16:13:33 -05:00
Evan Hahn
a6e85f2a06 "Bump build to 5.58.0.0." (nightly-10-05-2022) 2022-10-05 15:55:58 -05:00
Evan Hahn
0326453d0d Update translations 2022-10-05 15:55:46 -05:00
Evan Hahn
b0441d67c6 Update release notes 2022-10-05 15:52:35 -05:00
Igor Solomennikov
e926b26f5d
Text stories UI improvements
* Allow to force "compact" style for a link preview view.

Link previews should be displayed in "compact" mode when there's a significant
amount of text.

* RoundMediaButton should never be allowed to be made smaller than its desired size.

* Improved layout for text stories: both composer and viewer.

There is now a shared UI layout logic between editor and viewer, editor being
a subclass of viewer.

New behavior for composer:
 • text view will grow in height as much as possible and becomes scollable
   when max height is reached.
 • link preview starts in "regular" layout (image above the text) and then
   is updated to "compact" layout (image on the left, text on the right)
   as text view grows.

New behavior for viewer:
 • updated font sizes for match spec.
 • for extra tall stories text label is scaled down to fit.

* Fix bug where Proceed button would stay disabled after composing a text story.

* Fix two UX issues reported in PR review.
2022-10-05 12:46:03 -07:00
Nora Trapp
208d863739 Enable stories for beta users 2022-10-05 12:29:39 -07:00
Nora Trapp
9eb1c52dca Fix test 2022-10-05 12:29:39 -07:00
Harry
7cb68bd440
disable other gestures while transitioning story contexts 2022-10-05 12:25:33 -07:00
Nora Trapp
5b7b0ba390 Flag story SKDMs as story sends 2022-10-05 12:24:13 -07:00
Nora Trapp
437f98c2d3 Don't use UD for story prekey requests 2022-10-05 12:24:13 -07:00
Nora Trapp
433d63f003 Flag on websocket and REST message requests that stories are enabled 2022-10-05 12:24:13 -07:00
Nora Trapp
2d341189dd Drop invalid messages with the story flag on the envelope 2022-10-05 12:24:13 -07:00
Nora Trapp
1e613fe438 Use unrestricted sealed sender for story sends 2022-10-05 12:24:13 -07:00
Harry
88ed7a0376
Fix group call member sheet header blur effect
* Fix group call member sheet header blur effect

* pr feedback
2022-10-05 12:23:43 -07:00
Harry
de564afcaf
remove dataMigration_populateLastReceivedStoryTimestamp 2022-10-05 11:56:02 -07:00
Harry
6160765bf8
Mark onboarding story viewed for users who downloaded and viewed it before view state tracking code changes 2022-10-05 11:15:30 -07:00
Max Radermacher
10c7abcfc0 Remove fr-CA/fr-FR directory
It’s not needed as we have a top-level fr-FR directory as well.
2022-10-05 09:48:54 -07:00
Max Radermacher
51b1e96f2b Remove reference to sr-RS
Per the localization team, we’ll use sr-YR for Serbian.
2022-10-05 09:37:12 -07:00
Sasha Weiss
f39a8bacb2
Use attributed string formatting in CVComponentThreadDetails 2022-10-05 08:58:06 -07:00
Sasha Weiss
b00ef40076
Use attributed string format in ChatListViewController 2022-10-05 08:57:17 -07:00