Commit Graph

29506 Commits

Author SHA1 Message Date
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
Nora Trapp
ee6501115b "Bump build to 5.59.0.4." (nightly-10-19-2022) 2022-10-19 04:00:46 -07:00
Harry Sanabria
fc6733f13b Only debounce safe area conversation view inset updates 2022-10-18 22:39:28 -07:00
Harry Sanabria
00ab2d6e09 fix blinking when switching between story views and replies 2022-10-18 22:38:36 -07:00
Harry Sanabria
c763d7f4df Put story reply empty state behind bottom bar so its occulted by @ mentions 2022-10-18 22:38:36 -07:00
Harry Sanabria
2581a2a0af dont allow scrolling inside reply sheet bottom bar 2022-10-18 22:38:36 -07:00
Harry Sanabria
1e227641c9 Once reply sheet is focused and maximized, keep it maximized 2022-10-18 22:38:36 -07:00
Harry Sanabria
76e3b0aa36 Offset story tab bar badge 2022-10-18 22:36:59 -07:00
Evan Hahn
cebad00881
Move one-time donation amount view to its own file
_This change should have no user impact._

In addition to recommended amounts, users can donate custom amounts when
making a one-time donation.

Previously, this was called `CustomValueTextField` and lived in
`BoostViewController.swift`. Now it's in its own file (which I think
makes more sense) and is called `OneTimeDonationCustomAmountTextField`.

This was a very quick change. I didn't change the class beyond updating
its name.

I think this is useful on its own, but it'll be nice in an upcoming
change.
2022-10-18 21:08:51 -05:00
Igor Solomennikov
f7b0c4a339
"Attach Link" UX improvements.
* Fix faulty logic in validation of a URL parsed from string.

`OWSLinkPreview.isPermittedLinkPreviewUrl(parsedFrom:)` has logic to extract
hostname from a string that matches a detected URL. The logic was assuming that
every string begins with a scheme prefix (eg "http://"). That assumption isn't
always correct because NSDataDetector uses HTTP scheme when scheme prefix is not
present (eg "google.com" would result in "http://google.com" being detected).

* Two improvements to "attach link" UX.

• any valid HTTPS url can be attached to a text story, even if the link wouldn't
  actually work.
• show progress indicator while fetching a link preview.

* Add "https://" to address in "attach link preview" UI if necessary.
2022-10-18 18:20:40 -07:00
Harry
9436ee6608
Use read state for the stories tab bar badge
* Use read timestamp in story badge count

* Add StoryBadgeCountManager

* Manager stories tab bar badge count in StoryBadgeCountManager

* Don't mark stories read while the app is backgrounded. Mark them read when foregrounding and on the tab bar

* Only mark the latest story per context as read

* fix tests
2022-10-18 16:22:50 -07:00
Harry
df51a9f837
Story-related conversation picker fixes
* apply theme to cells when conversation picker theme changes

* Retain selection UI when reloading conversation picker cells

* Prioritize newly created story threads for conversation picker sort ordering

* Index private story threads for searching

* Add story search results to conversation picker and fix issues with reloading with stuff pre-selected

* PR feedback 1: efficient thread migration

* PR feedback 2: don't allow expansion of story search results
2022-10-18 16:14:16 -07:00
Max Radermacher
9d8af6aba0 UUIDBackfillTask: Reuse exponential backoff logic 2022-10-18 16:10:10 -07:00
Max Radermacher
cc4af7b88e Remove CDSH 2022-10-18 16:08:33 -07:00
Max Radermacher
62fd09cd38 Remove shouldTryToEnableGroupsV2ForMembers
It’s always true.
2022-10-18 16:00:09 -07:00
Max Radermacher
127e6474d9 Assume gv2 in AddGroupMembersViewController
This view controller is only created for gv2 threads, so we can assume
every thread is a gv2 thread.

In `ConversationSettingsViewController.showAddMembersView()`, we call
`canEditConversationMembership`, which checks a number of things, one of
which is `!isBlockedByMigration`; a thread is blocked by migration if
`isGroupV1Thread` returns true.
2022-10-18 16:00:09 -07:00
Nora Trapp
8c633c718e Private Story -> Custom Story 2022-10-18 15:41:04 -07:00
Harry
70780cfc7c
Add read state to the onboarding story
* Add readOnboardingStory to AccountRecord

* Add onboarding story read state to SystemStoryManager

* Sync onboarding story read state with storage service

* fix incorrect delete of unviewed system stories
2022-10-18 15:27:13 -07:00
Nora Trapp
5be184dc21 Add the ability to view all your signal connections 2022-10-18 13:39:00 -07:00
Michelle Linington
809a792aae Fix stale thread selection in chat list
See [here](https://github.com/signalapp/Signal-iOS/pull/5432).
2022-10-18 14:55:33 -05:00
Nora Trapp
5fc3c033d8 Add ability to set view receipts for stories 2022-10-18 11:23:26 -07:00
Nora Trapp
bb84fd3473 Add new storyViewReceiptsEnabled flag to storage service 2022-10-18 11:23:26 -07:00
Harry
201f002499
Add lastReadTimestamp to StoryContextAssociatedData
* Add last read timestamp to StoryContextAssociatedData

* Write lastReadTimestamp on StoryContextAssociatedData

* Copy lastViewedTimestamp over to lastReadTimestamp to simplify badge query

* apply didSets for data that changed at rest
2022-10-18 11:18:06 -07:00
Harry
49975b2fdc
Add read timestamp to StoryMessage
* Add read timestamp to incoming story manifest

* send story message read syncs to linked devices

* Process incoming story message read syncs from linked devices
2022-10-18 11:15:10 -07:00
Nora Trapp
88eafd3458 Don't allow creating a group story for a group we can't message in 2022-10-18 11:09:10 -07:00
Nora Trapp
2d5bce4336 When presenting a chat from the story tab, dismiss all presented views 2022-10-18 11:09:10 -07:00
Nora Trapp
3da121788e Fix removing of group story 2022-10-18 11:09:10 -07:00
Nora Trapp
5d9c2a3b8e Show blocked by announcement only view on group replies sheet 2022-10-18 11:09:10 -07:00
Nora Trapp
5f048550e1 Add always dark support to blocking announcement only view 2022-10-18 11:09:10 -07:00
Nora Trapp
781444df45 Drop incoming stories from non-admins in announcement groups 2022-10-18 11:09:10 -07:00
Nora Trapp
9639393ded Move stories settings to root level 2022-10-18 11:08:50 -07:00
Evan Hahn
e03461b176 Use "donations" in one-time/monthly donation logs
Previously, we used `[Subscriptions]` which wasn't always right. Now, we
use `[Donations]`.
2022-10-18 09:33:17 -07:00
Evan Hahn
623b1909b2
Prefer Decimal over NSDecimalNumber
This change should have no user impact.

We use `NSDecimalNumber` and `Decimal`. This tries to standardize on
`Decimal` where possible (though the former is still needed in a few
places).

Mostly a mechanical change, though a few little things changed.
2022-10-18 09:43:46 -05:00
Nora Trapp
72d9653c44 "Bump build to 5.59.0.3." (nightly-10-18-2022) 2022-10-18 04:01:07 -07:00
Nora Trapp
8b6cc7a8b7
Don't include group story replies when querying mentions 2022-10-17 23:46:41 -07:00
Nora Trapp
d5f4c92018 Update new story button 2022-10-17 23:45:00 -07:00
Nora Trapp
0f4e12bdc9 Don't show save in my stories context menus 2022-10-17 23:44:16 -07:00
Nora Trapp
4666828cb9 Allow saving text stories as photos 2022-10-17 23:44:16 -07:00
Nora Trapp
2c59b2f7b3 Fix localization in safety number sheet 2022-10-17 23:43:56 -07:00
Nora Trapp
4ec2bd0245 Only show group name on stories list 2022-10-17 23:43:20 -07:00
Nora Trapp
0a2518b16b Only tag SKDMs as story sends for non-group threads 2022-10-17 23:43:06 -07:00
Nora Trapp
2afee76393 Allow enabling stories by country code 2022-10-17 23:42:50 -07:00