Commit Graph

28886 Commits

Author SHA1 Message Date
Nora Trapp
30cd34704d "Bump build to 5.51.0.5." (nightly-08-20-2022) 2022-08-20 15:01:12 -07:00
Nora Trapp
89076ed822 Fix stories tab badging 2022-08-20 15:01:03 -07:00
Nora Trapp
5bdc475ade Fix 'My Stories' empty state 2022-08-20 15:00:44 -07:00
Nora Trapp
b0f6b1fe33 Fix 1:1 story reply button 2022-08-20 15:00:30 -07:00
Nora Trapp
bd75d400c8 "Bump build to 5.51.0.4." (nightly-08-20-2022) 2022-08-20 04:00:27 -07:00
Sasha Weiss
901b24bf0a
Sort the Xcode project's visible files 2022-08-19 15:38:25 -07:00
Nora Trapp
b4c9aa8e64 Fix linting 2022-08-19 14:25:28 -07:00
Nora Trapp
b420ad1f95 Cleanup AttachmentMultisend 2022-08-19 14:23:59 -07:00
Nora Trapp
43b010d9be Allow TSOutgoingMessage to build its own transcript, that subclasses can override 2022-08-19 14:23:59 -07:00
Nora Trapp
73e5d939bd future proof story receivedState storage 2022-08-19 14:23:59 -07:00
Nora Trapp
f340250194 Support remote delete of stories 2022-08-19 14:23:59 -07:00
Nora Trapp
26d10c3669 "Bump build to 5.51.0.3." (nightly-08-19-2022) 2022-08-19 04:00:41 -07:00
Jordan Rose
ced6589bec Fix a retain cycle for story toggle buttons 2022-08-18 16:28:47 -07:00
Nora Trapp
7208776b44 Add action buttons to sent story rows 2022-08-18 16:26:15 -07:00
Nora Trapp
b5c3f4af0b Convert settings button to ContextMenuButton 2022-08-18 16:26:15 -07:00
Nora Trapp
f34dc6ec3a Add a ContextMenuButton for displaying menus from UIButtons 2022-08-18 16:26:15 -07:00
Evan Hahn
48c3c08c10 Fix vertical_parameter_alignment SwiftLint violations
This fixes violations of [SwiftLint's `vertical_parameter_alignment`
rule][0]. This should have no user impact.

[0]: https://realm.github.io/SwiftLint/vertical_parameter_alignment.html
2022-08-18 10:37:09 -05:00
Evan Hahn
773956917c Update pods 2022-08-18 09:37:16 -05:00
Jordan Rose
c410570266 Change simulator local video view from bright green to light brown
Apart from being easier on the eyes, some of the buttons overlaid on
the local video view are also green.
2022-08-18 07:41:15 -05:00
Evan Hahn
97322aaef8 Use libwebp on CocoaPods instead of our vendored one
This should have no direct user impact.

We recently upgraded `libwebp` in
e3fa7848e5. At the time, [the official
pod][cocoapod] was out of date, so we vendored it in. It's now there, so
we should use it.

[cocoapod]: https://cocoapods.org/pods/libwebp
2022-08-18 07:38:13 -05:00
Evan Hahn
da322d3bf9 Add "urgent" boolean to outgoing messages
To improve message reliability, we're adding an urgency flag to outgoing
messages. For example, outgoing calls are urgent, but delivery receipts
are not. [Android][] and [Desktop][] have already done this work.

At a high level, I added an `isUrgent` property to `TSOutgoingMessage`s.
It defaults to `true`. Some subclasses, like
`OWSReceiptsForSenderMessage`, override it to return `false`.

Builds off of a few other commits (not necessary to understand this
commit, but might be useful for posterity):

- e858a0d916
- 8c6d2ebe8c
- 402b117221
- 2ba0cd764d
- 266a4663e9
- 8e5009bbf7

[Android]: dc04c8ed98
[Desktop]: 06190b1434
2022-08-18 07:35:41 -05:00
Nora Trapp
e83d5ba29b "Bump build to 5.51.0.2." (nightly-08-18-2022) 2022-08-18 04:00:52 -07:00
Jordan Rose
e76f81e934 Watch group membership changes in the group call lobby
...so we can enable and disable the ring button live. And do so
preserving the user's preferences in case they turn off ringing, then
someone joins the group and it goes over the limit, then someone
leaves the group and it's back under.
2022-08-17 17:59:19 -07:00
Jordan Rose
0f694d318c Allow ToastController to present from the top as well 2022-08-17 17:59:19 -07:00
Jordan Rose
f434ca0419 Add an outgoing group ring button 2022-08-17 17:59:19 -07:00
Jordan Rose
9819c92464 Add groupRings and maxGroupRingSize to RemoteConfig 2022-08-17 17:59:19 -07:00
Jordan Rose
684e7a52de Keep RingRTC up to date on our ACI 2022-08-17 17:59:19 -07:00
Jordan Rose
31bf56cee3 Improve display of five call buttons at once
- On the smallest devices (iPod touch and original iPhone SE) shrink
  the spacing between the buttons in addition to shrinking the
  buttons, so they all fit on the screen with some margin to spare.

- On other phones, shrink the buttons but keep the full spacing
  between them. (This is the current behavior.)

- Never shrink buttons on iPads, which can afford and benefit from
  larger tap targets.

While here, let the call control stack views do some of the layout
work for us.
2022-08-17 17:22:54 -07:00
Jordan Rose
f8829e341a Stop tracking attachments specifically in ObservedDatabaseChanges
MediaGallery and the conversation settings view were the only clients
of this, and both are better served by explicit notifications for the
state transitions they care about.
2022-08-17 14:08:16 -07:00
Jordan Rose
7c78505a5b Add an NSNotification for new downloaded attachments
Both MediaGallery and the conversation settings view care about added
or deleted media attachment streams (that is, attachments that are
downloaded and accessible), but not other updates to the attachments
table. Listening for just those notifications is more efficient than
listening to all database changes (though we still have to handle
background changes coming from other processes, like the share
extension).

Additionally, while here, don't immediately refresh the conversation
settings view if it's not currently showing (say, because it's covered
by the All Media view).
2022-08-17 14:08:16 -07:00
sashaweiss-signal
5038bb9fa4 "Bump build to 5.51.0.1." (nightly-08-17-2022) 2022-08-17 13:43:31 -07:00
sashaweiss-signal
6beb623d52 Update translations 2022-08-17 13:43:21 -07:00
sashaweiss-signal
339f660e65 Update release notes 2022-08-17 13:43:21 -07:00
sashaweiss-signal
4dae29a22b "Bump build to 5.51.0.0." (nightly-08-17-2022) 2022-08-17 13:31:10 -07:00
Sasha Weiss
7146a02821
Serialize group updates using OWSOperation 2022-08-17 13:18:31 -07:00
Jordan Rose
259b43cfe1 Rotate mute indicators and contact avatars in calls as well
Follow-up to 678f8cb332. Note that the group members icon in the
top-right (portrait orientation) is *not* rotated, since it's
associated with the count label that follows and the top bar in
general.
2022-08-17 12:56:08 -07:00
Sasha Weiss
c5f21a2e53
Allow a bannedAtTimestamp of 0 for incoming banned members 2022-08-17 12:52:48 -07:00
Max Radermacher
6a21c2e00d Mark ProvisioningController funcs/vars as private 2022-08-17 09:03:17 -07:00
Max Radermacher
4dd0894057 Remove unused SubscriptionMegaphone
It was obsoleted by df41e9f412. If we need it again, it’s easy to
revert this commit.
2022-08-17 09:03:05 -07:00
Nora Trapp
1857eab1cc "Bump build to 5.50.0.15." (nightly-08-17-2022) 2022-08-17 04:00:17 -07:00
Sasha Weiss
9ff8c07e7e
Only auto-refresh groups that we know we are members of 2022-08-16 12:58:57 -07:00
Evan Hahn
e858a0d916
Use subclass of outgoing message for group updates
Currently, group (v2) updates are just instances of `TSOutgoingMessage`.
This works, but is inconsistent with other outgoing messages, which
subclass it.

This refactor changes that to make things consistent.

I think this is a useful change on its own, but it will also make future
changes easier.
2022-08-16 14:45:51 -05:00
Evan Hahn
4dffd80aae
Shorten disappearing countdown description in message details
In adfda71472, we added a disappearing
countdown to the message details screen. It would say something like "6d
23h 58m 6s". Now it just says "6 days 23 hours".

I also reverted some stuff from that commit, because it's no longer
necessary.

Our UI now [matches Android][0].

[0]: 4656cf4bef
2022-08-16 14:35:15 -05:00
Evan Hahn
8c6d2ebe8c Test OWSRequestFactory.submitMessageRequest 2022-08-16 14:12:35 -05:00
Evan Hahn
402b117221 Test OWSRequestFactory.submitMultiRecipientMessageRequest 2022-08-16 14:12:35 -05:00
Nora Trapp
e3ac86d7a6 "Bump build to 5.50.0.14." (nightly-08-16-2022) 2022-08-16 04:00:17 -07:00
Igor Solomennikov
f10ed33cb2
A couple of minor UI improvements in the media editor.
• fix Reset button in Crop screen is too high on non-notch devices.
• hide status bar in Crop screen on non-notch iphones.
2022-08-15 17:18:22 -07:00
Sasha Weiss
af3b5131bb
Revert "Add a call to UIApplication:setMinimumBackgroundFetchInterval during app launch" 2022-08-15 15:58:47 -07:00
Nora Trapp
6b48d27bcd PR Feedback 2022-08-15 14:15:11 -07:00
Nora Trapp
66a268f759 Auto-download group stories if the author is from an auto-downloadable context, even if the group isn't 2022-08-15 14:15:11 -07:00