Commit Graph

28858 Commits

Author SHA1 Message Date
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
Nora Trapp
9e4faf335e Auto-download stories from people whose stories you have recently viewed 2022-08-15 14:15:11 -07:00
Nora Trapp
0aa84ad80b Ensure stories viewed on other devices are automatically downloaded 2022-08-15 14:15:11 -07:00
Nora Trapp
e2e0585ba8 Record last viewed time on story context 2022-08-15 14:15:11 -07:00
Nora Trapp
1d9a8a8995 Add lastViewedStoryTimestamp to TSThread 2022-08-15 14:15:11 -07:00
harry-signal
c935307563
Add logging for notification sound debugging
* add logging for notification sound debugging

* use NSString path appending
2022-08-15 14:07:20 -07:00
Jordan Rose
e5e4e4b2bf Fix message for an ongoing group call with three people
There's no reason to special-case "three" vs "four or more" in our
current format (rather than using "three or more"), and in fact the
"three" case wasn't using correct English (it was correct in the
PluralAware table, though). Update both the in-call title text and the
conversation item to use the PluralAware "many" version for "three or
more" people in a call.
2022-08-15 13:42:05 -07:00
george-signal
c517b0406b
Apply theme to CVC after changing input toolbar.
When the theme changes (which occurs spuriously
when backgrounding and reactivating the app in
dark mode on iOS 15), CVC.applyTheme was called
before CVC.updateThemeIfNecessary. This caused
quoted replies to have the wrong appearance.

This commit changes the order so that the quoted
reply's appearance is always correct.
2022-08-15 13:16:12 -07:00
Evan Hahn
2ba0cd764d Update comments that reference server code
This change should have no user impact because it only changes
comments.

We had some comments that referenced the Signal server repo. They
referenced a commit that was a little out of date (from March 2022).
This updates the links.
2022-08-15 11:54:48 -05:00
Evan Hahn
9c4412ef18
Remove nested compiler conditionals
This change should have no user impact.

We effectively had code like this:

    #if TESTABLE_BUILD

    foo()

    #if TESTABLE_BUILD
    bar()
    #endif

    #endif

The inner ones are unnecessary, so I removed them.
2022-08-15 09:13:51 -05:00
Nora Trapp
1d22e1bf64 "Bump build to 5.50.0.13." (nightly-08-13-2022) 2022-08-13 04:01:04 -07:00
harry-signal
713e8f1483
fix stories video end lag on production builds
* fix stories video end lag on production builds

* diff options properly

* change assert to debug assert
2022-08-12 13:34:55 -07:00
george-signal
54fbe0b948
Don't show call window for already-terminated calls. 2022-08-12 13:04:38 -07:00
Nora Trapp
bde2dd0851 "Bump build to 5.50.0.12." (nightly-08-12-2022) 2022-08-12 04:01:02 -07:00
Sasha Weiss
03839ab12a
Adjust some strings in sqlclient 2022-08-11 14:30:06 -07:00
Nora Trapp
7ee0e8c746 "Bump build to 5.50.0.11." (nightly-08-11-2022) 2022-08-11 14:15:48 -07:00
Nora Trapp
263dc6ab5b Adjust durations for story playback to allow longer text reading time 2022-08-11 14:14:55 -07:00
george-signal
bb33925499
Persist quoted replies
When you compose reply to a message but do not
send it, we would persist the text you entered but
would lose the quoted message to which you were
replying.

This commit adds support for persisting that
information.

ThreadReplyInfo is a new class that uses the
key-value store to associate a single optional
reference to a message with each thread.

The following behaviors are nw:
* When you enter the CVC the input toolbar is
  updated to have the quoted message.
* When you exit the CVC the quoted message is
  saved.
* When a thread is deleted, the quoted message is
  deleted.
2022-08-11 13:44:50 -07:00
Nora Trapp
0448e9e06a Fix sender-key retry behavior for stories 2022-08-11 13:21:38 -07:00
Nora Trapp
9872111cf6 PR Feedback 2022-08-11 13:11:17 -07:00
Nora Trapp
02cd514370 Cleanup page view controller's access to multiple contexts 2022-08-11 13:08:50 -07:00
Nora Trapp
d12af96dde Dismiss the story viewer after viewing all unviewed contexts 2022-08-11 13:08:50 -07:00
Nora Trapp
bfa08e001e Automatically download subsequent stories when in the story viewer 2022-08-11 13:08:50 -07:00
Nora Trapp
97f1483c03 Implement auto-download logic for stories 2022-08-11 13:08:50 -07:00
Nora Trapp
0d310bc13b Update attachment download design 2022-08-11 13:08:50 -07:00
Nora Trapp
794630f678 Update to Lottie 3.4.1 2022-08-11 13:08:50 -07:00
Nora Trapp
2e002be110 Don't render download state on story thumbnails 2022-08-11 13:08:50 -07:00
harry-signal
93342479d9
Only observe volume buttons while stories are muted
* only observe volume buttons while stories are muted

* make easier to read
2022-08-11 12:36:59 -07:00
harry-signal
b5d9f61a96
fix story edge pan for notched devices 2022-08-11 09:58:41 -07:00