Commit Graph

28958 Commits

Author SHA1 Message Date
Nora Trapp
8bd91e6571 "Bump build to 5.52.0.4." (nightly-08-29-2022) 2022-08-29 04:00:56 -07:00
Evan Hahn
4fc5d75793 Update libPhoneNumber-iOS
This updates our libPhoneNumber dependency. See [the libPhoneNumber-iOS
commit][0].

According to [the upstream libphonenumber release notes][1], they
updated the formatting for +49 numbers. That caused a test to break, so
I updated it (and tested a few additional dialing codes).

[0]: 8b6f552682
[1]: 90503ecef3/release_notes.txt (L21)
2022-08-28 15:31:06 +00:00
Nora Trapp
333d9e4a8e "Bump build to 5.52.0.3." (nightly-08-27-2022) 2022-08-27 04:00:49 -07:00
Igor Solomennikov
981382ab65
Add explicit public initializer for TextAttachment.Background.Gradient struct.
This would allow initializing TextAttachment.Background.Gradient outside
of SignalServiceKit module.
2022-08-26 20:58:30 -07:00
Igor Solomennikov
6c1ed8d0dd
GradientView API improvement.
Allow to set just the gradient colors, without locations, relying on CAGradientLayer's
uniform color distribution logic.

Also update all the uses of GradientView to only specify colors because all the
places were using just two locations: 0 and 1.
2022-08-26 20:58:04 -07:00
Max Radermacher
1e056bfe71 Remove debug code to prepopulate change number 2022-08-26 14:43:09 -07:00
Max Radermacher
74c0bd93a7 Properly specify isComplete on contact syncs 2022-08-26 14:42:57 -07:00
Max Radermacher
fdc8633ab0 Remove ConversationConfigurationSyncOperation
It’s unused (except in debug code) since 8c0196077f.
2022-08-26 14:42:57 -07:00
Sasha Weiss
569cdb2aad
Durable jobs for leaving groups 2022-08-26 13:13:23 -07:00
Jordan Rose
1ba6bac2a5 Group call header: properly show "Ringing Albert, Bess, and Cillian"
This message is supposed to stay up until someone joins the call, but
it was getting dismissed just by the ringer *being* on the call.
2022-08-26 12:18:19 -07:00
Evan Hahn
5a0f836f0d Use "timestamp" instead of "timeStamp"
This change should have no user impact.

We use "timestamp", all lowercase, in most of the codebase. This makes
it consistent.
2022-08-26 14:17:12 -05:00
Harry
41211e0102
Add system author for Story messages
* make StoryMessage author an enum and handle at all usage sites

* add system story case to story context; don't show replies for system stories

* [tentative] add system avatar image

* clean up context creation and other odds and ends

* fix merge conflicts

* pre-PR cleanup

* add avatar asset TODO

* pr comments

* remove StoryAuthor enum, pass around author UUID instead with extension for checking if it is the signal system author uuid

* pr comments
2022-08-26 11:46:48 -07:00
Max Radermacher
4715a47f2e "Bump build to 5.52.0.2." (nightly-08-26-2022) 2022-08-26 11:44:50 -07:00
Max Radermacher
6955b6f53a Revert tapping names in group system messages
- Revert "More flexible selection styling in CVTextLabel"
  (commit e1317d814c)

- Revert "Show the MemberActionSheet for tapped names in group system messages"
  (commit 48bc3c07d0)
2022-08-26 11:43:58 -07:00
Evan Hahn
107b462fbe Close keyboard before dismissing gift badge, fixing bug
This dismisses the keyboard before you send a gift badge. I think this
is slightly better UX, but it also fixes a bug where the chat header
would be untappable after sending a gift badge.
2022-08-26 08:59:32 -05:00
Nora Trapp
b3a2b4ee34 "Bump build to 5.52.0.1." (nightly-08-26-2022) 2022-08-26 04:00:47 -07:00
Harry
8ab9505d75
Ignore failures to clean up dotfiles in logs directory on simulators 2022-08-25 16:24:19 -07:00
Sasha Weiss
11e2729c49
Auto-leave groups when added by a blocked contact 2022-08-25 16:20:15 -07:00
Sasha Weiss
e1317d814c
More flexible selection styling in CVTextLabel 2022-08-25 15:33:28 -07:00
Max Radermacher
6291280ee8 Update release notes 2022-08-25 15:22:11 -07:00
Sasha Weiss
48bc3c07d0
Show the MemberActionSheet for tapped names in group system messages 2022-08-25 13:03:38 -07:00
Sasha Weiss
24d3d0e68d
Remove requiredRevision arg from updateExistingGroupOnService, and make it private 2022-08-25 12:41:55 -07:00
Sasha Weiss
56b9b2c139
Wait for group updates before doing profile key updates 2022-08-25 11:54:01 -07:00
Max Radermacher
6e524f25ed "Bump build to 5.52.0.0." (nightly-08-25-2022) 2022-08-25 11:47:44 -07:00
Max Radermacher
895c1b7576 Update translations 2022-08-25 11:44:03 -07:00
Igor Solomennikov
0ff89c1e5e Update chat input box send icon with a larger version. 2022-08-25 11:35:19 -07:00
Max Radermacher
5449a4de9b Remove unused code from MockSSKEnvironment
As of 86b8eb08b8, the database initialization no longer has
asychronous components. The current code returns an already-resolved
promise in all situations, so remove the asynchronous infra entirely.
2022-08-25 09:53:08 -07:00
Evan Hahn
92ef1610fc Actually run OutgoingGroupUpdateMessageTest
I added these tests in da322d3bf9 but
didn't actually add them to the project! This adds them and runs them.
2022-08-25 11:14:49 -05:00
Evan Hahn
f997e5c7a4 Remove some tests that were never run
I added these tests in da322d3bf9, but we
decided that they're not worth it.

Also, it seems I forgot to add them to the project! So they were never
run anyway, outside of the times I ran them while developing.
2022-08-25 11:14:43 -05:00
Mihail Plesa
aeb4481e1e Hide "Approve New Members" if group link is disabled
_I recommend reviewing this with whitespace changes disabled._

This hides the "Approve New Members" section if the group link is
disabled, as it doesn't really make sense to include it.

See [#5319][0].

[0]: https://github.com/signalapp/Signal-iOS/pull/5319
2022-08-25 10:33:58 -05:00
Nora Trapp
2247824fe7 "Bump build to 5.51.0.9." (nightly-08-25-2022) 2022-08-25 04:00:44 -07:00
sashaweiss-signal
efc697af23 Re-order lines in test harness to avoid a race condition 2022-08-24 16:21:13 -07:00
Harry
63661ba4c8
Add feature flag for system onboarding story
* Add feature flag for system onboarding story

* switch to dev
2022-08-24 14:51:06 -07:00
Harry
33e26b6c4c
Migrate OWSSignalService from objc to swift, and split it into a protocol and implementation
* Split OWSSignalService into a swift protocol and implementation, migrated from objc

* Put OWSSignalService under SSKEnvironment and use mock in mock environment

* Rename from basename + impl to protocol + basename

* extend mock functionality a bit

* pr feedback
2022-08-24 14:36:52 -07:00
Max Radermacher
0f749fdb06 Update CDS MrEnclave
Tested lookups with a contact that exists and one that doesn’t.
2022-08-24 13:58:21 -07:00
Harry
2950667ac9
Split OWSURLSession into a protocol and implementation
* Split OWSURLSession into a protocol and implementation

* Add OWSURLSessionMock

* Rename from basename + impl to protocol + basename

* add simple init for mock session

* nits from pr comments

* pr comments 2
2022-08-24 13:33:27 -07:00
Max Radermacher
923b186c48 Remove redundant NewGroupState initialization
This view controller expects to be passed an instance that already
exists. The instanced created on this line is therefore created but
never read. Avoid creating it to save some CPU cycles.
2022-08-24 12:22:31 -07:00
Max Radermacher
91008dd29e Fix indentation in SDSKeyValueStore 2022-08-24 12:17:05 -07:00
Jordan Rose
556c6e3c96 CallHeader: Use a monospace-digit font for the call duration 2022-08-24 12:15:48 -07:00
Jordan Rose
2bb1f6c22a Move the "Your camera is off" indicator up to GroupCallViewController
...so it can be constrained to not overlap the call header or call
controls when in larger font sizes. Additionally, the new view uses a
smaller font, and a horizontal layout for the icon + label when on
small screens.
2022-08-24 12:15:48 -07:00
Jordan Rose
ecc48d7935 Remove dedicated "Call is Full" screen
With more information on the group call lobby screen, it doesn't make
sense to have the entire camera feed replaced with a "Call is Full"
message. Instead, disable the Join button as before, and show a toast
if the user taps on it anyway.
2022-08-24 12:15:48 -07:00
Jordan Rose
2350656282 Overhaul the group call header "title" and "status" text
Title: name of the group, unless someone is presenting

Status, when in a call:
- "Reconnecting",
- "Ringing Ahmed, Bianca, and N others",
- "No one else is here", or
- (call timer)

Status, before joining the call:
- "Akiko, Bharat, and N others are in the call",
- "Signal will ring Alex, Blue, and N others", or
- "Amy, Brian, and N others will be notified"
2022-08-24 12:15:48 -07:00
Jordan Rose
5b53856c6f CallHeader: Add the group avatar to the call lobby
And pave the way for multi-line status messages
2022-08-24 12:15:48 -07:00
Jordan Rose
db83791f07 CallHeader: Remove the HStack, use manual constraints instead
This allows hiding the members button when there is no one in the
call. It will also be useful for the redesigned lobby screen where the
info is in the middle of the screen instead of at the top.
2022-08-24 12:15:48 -07:00
Jordan Rose
4ca7796385 Call controls: allow the Join button to expand horizontally
While this text should still be kept terse, larger font sizes or other
languages can still end up wanting more horizontal space. The vertical
size is fixed so it doesn't mess up the layout, though.
2022-08-24 12:15:48 -07:00
Jordan Rose
825481f9e9 Call controls: Remove Cancel button from group call lobby
The back button works just as well. While here, also use the new join
button design (fully rounded).
2022-08-24 12:15:48 -07:00
Jordan Rose
0978c06bca Hide top and bottom gradients in call lobbies
The new design only has them when in the call.
2022-08-24 12:15:48 -07:00
Jordan Rose
50e8ef7ed8 Extract TSGroupThread.sortedGroupMembers(...) from FullTextSearcher
This will be used for deterministically listing group members in the
group call lobby, hence some customization that FullTextSearcher
doesn't need.
2022-08-24 12:15:48 -07:00
Evan Hahn
b3ac90d9fc Hide sticker button when opening chat with a draft quote
This fixes a bug that was [reported on the forums][0]. If you:

1. Open a chat.
2. Quote a message.
3. Go back to the chat list.
4. Open that chat again.

Previously, the sticker button would be shown. This is because the
`quotedReply` member wouldn't be set yet. This fixes that by
initializing `quotedReply` with the `ConversationInputToolbar`.

[0]: https://community.signalusers.org/t/beta-feedback-for-the-upcoming-ios-5-50-release/46594/4
2022-08-24 13:21:38 -05:00
Jordan Rose
bb7d5892d9
MediaGallery: Separate the loading logic into MediaGallerySections (take two)
Re-applies 4e37af097b and ecd0740c7d after further testing and cleanup.
2022-08-24 10:46:29 -07:00