Commit Graph

29547 Commits

Author SHA1 Message Date
Harry
08dabd70d2
Story list search
* Hide navigation bar when searching in chats list

* Incomplete search bar layout

* apply story search filtering

* hide my stories section when searching

* Improve transitions for story tab bar search

* Show hidden stories in search results

* visual fixes to header when searching. include all unfiltered stories in viewer contexts

* delay getting the target story frame for interactive dismissal to give the view time to update after navigation bar changes

* fix strings

* pr feedback
2022-10-24 15:38:54 -07:00
Nora Trapp
023a83bb60 Ensure story view receipts are sent even if read receipts are disabled 2022-10-24 15:28:21 -07:00
Nora Trapp
d622879063 Ensure story view receipts are enabled for new users 2022-10-24 15:28:21 -07:00
Nora Trapp
8cc1a310eb
Filter story info and views sheets based on context 2022-10-24 15:28:00 -07:00
Harry
7437d14689
Continue playing story after cancelling a hide action 2022-10-24 14:33:19 -07:00
Igor Solomennikov
3235eb6618
Render condensed text style (AA) in all caps in text story composer.
Preserve case-sensitive user input and make UITextView display ALLCAPS if
AA style is selected.
2022-10-24 13:33:48 -07:00
Harry
26b5fd0673
Fix updates to my story row border colors 2022-10-24 11:30:16 -07:00
Max Radermacher
87aef6d5e5 Remove redundant ";" from method implementations
There’s a warning for this in SignalServiceKit.
2022-10-24 10:30:07 -07:00
Max Radermacher
3e129edfcd Limit scope of undiscoverable gv2 phone numbers
If we’ve recently discovered that a phone number can’t be discovered,
there isn’t much benefit to checking again.

However, for other parts of the migration flow, we still want to
consider such users. For example, sometimes we want to require all users
to have a UUID to perform a migration. Before this change, we might
return a false positive after performing a CDS lookup since we wouldn’t
check whether or not recently undiscoverable users have a UUID.

In another case, we’re intentionally excluding users without UUIDs. In
this case, the end result is the same whether we drop them during the
first pass or the second pass, but the intent is more clear if we drop
all such users during the second pass.

Lastly, we want to fetch profiles even for undiscoverable users, even
though this operation is likely to fail.
2022-10-24 10:21:05 -07:00
Max Radermacher
a51ce6ba2d Remove presentAddThreadToProfileWhitelist
It’s unused as of aab95db806.
2022-10-24 10:19:06 -07:00
Max Radermacher
ab55cf3929 Import SignalMessaging where it’s needed
The next commit removes a file that, through assorted Swift/Obj-C bridge
magic, resulted in SignalMessaging being available to all these files.
2022-10-24 10:19:06 -07:00
Max Radermacher
40dbeaacc6 Uppercase “PIN” in “Skip and Create New PIN” 2022-10-24 11:33:42 -05:00
Max Radermacher
f27d53deb2 Remove .otherUsersProfileWillChange notification
It’s not used, and it’s misleading because it gets sent *after* the
profile has changed.
2022-10-24 11:31:47 -05:00
Max Radermacher
09e3c7e3d4 Only show non-empty “Contacts” search results
If the only result is blocked, we’ll show an empty “Contacts” section.
2022-10-24 09:18:28 -05:00
Nora Trapp
8bf13d0e8c "Bump build to 5.60.0.2." (nightly-10-22-2022) 2022-10-22 04:00:55 -07:00
Max Radermacher
60f43335d3 Send reactive profile key if we’re both in a group 2022-10-21 16:00:52 -07:00
Evan Hahn
dab02f30ae Donations should only allow the server's currencies
If a currency is not in the list returned by the server, you shouldn't
be able to choose it because it won't work.

This worked correctly for monthly and gift donations, but not for
one-time. This fixes that.

This still has a bug where if your default currency isn't in the list,
you'll still be able to choose it. (Your default currency is locale-
-dependent; see `Stripe.defaultCurrencyCode`.) However, I plan to
address that in an upcoming change, and this commit doesn't make that
bug *worse*.
2022-10-21 10:49:07 -07:00
Max Radermacher
036a878774 Cancel old GitHub Actions when updating a PR 2022-10-21 10:39:08 -07:00
Igor Solomennikov
7fcf28d35f
Proper fix fox recent photo thumbnails changing size in media attachment sheet.
Simply update item sizes in `layoutSubviews` which is getting called each time
sheet size changes.
2022-10-21 08:37:41 -07:00
Nora Trapp
77fbf610bc "Bump build to 5.60.0.1." (nightly-10-21-2022) 2022-10-21 04:00:53 -07:00
Max Radermacher
3a782059ff
Clean up attestation verification 2022-10-20 20:52:15 -07:00
Max Radermacher
cf11cccaad
Add INTEL-SA-00615 advisory 2022-10-20 20:17:39 -07:00
Igor Solomennikov
6005d55c11
Expand link preview vertically in composer if user deletes text.
In text story composer, link preview might be collapsed to "compact" layout 
after user enough text so that there's no more vertical room for both text 
and link preview.

This change improves composer behavior to expand link preview back to 
"regular" layout if user deletes some or all text and there's now room for both.
2022-10-20 17:23:11 -07:00
Igor Solomennikov
55be3e6405
Make text input cursor same color as text in text story composer and photo editor. 2022-10-20 15:52:49 -07:00
Nora Trapp
e86c5b7b3e Don't discard story view receipts if read receipts are disabled 2022-10-20 15:42:44 -07:00
Nora Trapp
62759daa60 Properly handle unregistered recipients during sender key sends 2022-10-20 15:39:05 -07:00
Nora Trapp
000b0c783d Only render my stories when presenting info sheet from my stories view 2022-10-20 15:38:28 -07:00
Nora Trapp
13a52912bc Only take state updates from outgoing messages if we're in a transient state 2022-10-20 15:38:28 -07:00
Max Radermacher
54479805f4 Remove unused registration code 2022-10-20 16:48:50 -05:00
Harry
fb472b7854
Replace usages of 1 in pluralized strings with %d 2022-10-20 12:36:07 -07:00
Evan Hahn
b9d230f7f7
Use consistent donation hero view with new copy
A "donation hero" is shown twice in the app: once on the donation
settings screen, and another on the subscription management screen.

Previously, they were slightly different. With some new copy changes,
they're the same, so we can use a single view for both.
2022-10-20 14:26:54 -05:00
Harry
87db4ab0aa
Better multisend of text stories
* Shuffle code around, adding UnsentTextAttachment

* Replace usages of TextAttachment with UnsentTextAttachment where applicable, creating an actual TextAttachment (and associated OWSlinkPreview image TSAttachment, if applicable) only per-recipient

* Only upload one text story link preview image attachment and propagate it to the individual TSAttachments created for each destination

* update comments so I don't lose my mind the next time I read this code

* Dedupe text stories sent to the same person via multiple private threads

* fix non-compiling tests

* pr feedback
2022-10-20 11:04:25 -07:00
Harry
b5eab48d90
Fix story cell background colors in dark mode in ipad popover mode 2022-10-20 10:33:23 -07:00
Evan Hahn
4d768aa353 Update copy on donation megaphone
The changes to the Swift code weren't strictly necessary, but it's our
new style of doing translations, so I did that.
2022-10-20 09:58:21 -07:00
Max Radermacher
6f24be6b6a Remove unused plurals when running auto-genstrings
Several strings appear to be unused. As far as I can tell, these were
added in 54b743de2d but never used.

Script output:
PluralAware.stringsdict: Removed THREAD_DETAILS_MORE_MUTUAL_GROUP_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_DAYS_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_DAYS_SHORT_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_HOURS_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_HOURS_SHORT_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_MINUTES_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_MINUTES_SHORT_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_SECONDS_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_SECONDS_SHORT_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_WEEKS_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_WEEKS_SHORT_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_YEARS_%d
2022-10-20 09:57:30 -07:00
Evan Hahn
c1c6d79f0e Update copy on donation "read more" sheet
This updates the copy and tweaks the UI to account for the new copy.
2022-10-20 08:09:20 -05:00
Harry Sanabria
eae042e8c9 "Bump build to 5.60.0.0." (nightly-10-19-2022) 2022-10-19 16:39:04 -07:00
Harry Sanabria
465d00664b Update translations 2022-10-19 16:38:27 -07:00
Harry Sanabria
cf8f2ef7e0 Update release notes 2022-10-19 16:31:04 -07:00
Max Radermacher
09ff755cc5
Ignore .DS_Store when syncing translations
(Also, ignore all files -- we only care about directories.)
2022-10-19 16:28:46 -07:00
Harry
dc15f61a90
Fix text story link thumbnail blinking
* dont reload story thumbnails if the attachment hasn't changed

* Cache text attachment link preview images
2022-10-19 15:39:38 -07:00
Harry
4ca46cb72e
Update some stories copy 2022-10-19 14:49:42 -07:00
Max Radermacher
1ea74d9266 Fix recipient picker nav bar when theme changes
On iOS 16, the nav bar itself is transparent, so the container view
controller’s background is visible. The color of that view wasn’t being
updated, which resulted in the nav bar appearing the wrong color.

A few view controllers worked around this by manually updating just the
background color to the same value used by the table view. It seems
cleaner to re-apply the overall styling when the theme changes.
2022-10-19 13:20:00 -07:00
Harry
a5a69062a5
Use lotties in story viewer NUX overlay 2022-10-19 12:29:15 -07:00
Harry
a0168195f4
Story fixes: context menu and my story row
* remove unecessary owsFailDebug

* fix context menu icon positioning

* fix layout of custom context menus near the left side of the screen in RTL languages

* UX tweaks for my story cell

* status

* apply theme changes to tab bar that happened while it was hidden

* pr feedback 1

* pr feedback 2
2022-10-19 10:48:09 -07:00
Jordan Rose
f5e206da23 Revert "Use supportedInterfaceOrientations to force calls to portrait"
This reverts commits 41b381b1b1 and
856ced4062.
'supportedInterfaceOrientations' doesn't behave correctly in certain
scenarios, including when the app is *launched* in landscape.
2022-10-19 10:37:51 -07:00
Max Radermacher
a98cf8ebb5
Ignore private stories in compose search results 2022-10-19 10:03:02 -07:00
Max Radermacher
9db9d94085
Handle isComplete during incoming contact syncs 2022-10-19 09:29:52 -07:00
Max Radermacher
3b11c52177
Move all ContactDiscoveryTask callers to Swift
* Move `intersectContacts:…` to Swift
* Move RecipientPickerVC contact discovery to Swift
* Remove ObjC support from ContactDiscoveryTask
2022-10-19 08:34:50 -07:00
Max Radermacher
721d0d662f
Consolidate “Find by Phone Number” validation
There were some redundant checks as a result of the duplication between
the validation and lookup methods. Shift more of the logic into the
shared method to avoid repeating the same thing multiple times.

Also, return a single item rather than an `Array`. We only expect a
single result, so there’s no need to pass around an `Array.`
2022-10-19 08:33:48 -07:00