Commit Graph

8860 Commits

Author SHA1 Message Date
Matthew Chen
ee94988082 Elaborate logging around message processing and web sockets. 2021-09-10 21:06:35 -03:00
Matthew Chen
1fa8fef610 Streamline websocket requests. 2021-09-09 14:41:38 -03:00
Matthew Chen
9f7b2b6da7 Tweak footer hiding in CVC. 2021-09-09 13:27:59 -03:00
Matthew Chen
d51c563a88 Ensure layout attributes are applied to freshly configured cells. 2021-09-09 13:16:51 -03:00
Matthew Chen
74bcdd9b73 Ensure layout attributes are applied to freshly configured cells. 2021-09-09 13:08:17 -03:00
Matthew Chen
1dbbf2527e Apply design feedback. 2021-09-09 12:45:38 -03:00
Matthew Chen
f29922b9af Refine message send milestones. 2021-09-08 21:41:13 -03:00
Matthew Chen
feef75a1a4 Tweak CVC loads. 2021-09-08 21:41:13 -03:00
Matthew Chen
9271f83624 Remove databaseChangesWillUpdate. 2021-09-08 21:41:13 -03:00
Matthew Chen
f96d1e60ad Tune CVC load coordinate event. 2021-09-08 21:41:13 -03:00
Matthew Chen
5de4cb26c5 Refine message send bench milestones. 2021-09-08 21:41:13 -03:00
Matthew Chen
5e7636ec62 Add metrics around rendering message sends. 2021-09-08 21:41:13 -03:00
Matthew Chen
b12b71910f Disable CVC load logging in internal builds. 2021-09-08 16:29:29 -03:00
Matthew Chen
f8765e3a0e Rework DebouncedEvent. 2021-09-08 15:04:26 -03:00
Matthew Chen
2cfa16c31c Cache display names when building CVC item models. 2021-09-08 15:04:26 -03:00
Matthew Chen
0b6d3e2ef4 Refine CVC text measurement caching. 2021-09-08 15:04:26 -03:00
Matthew Chen
7ae7510c47 Improve perf of CVC date math. 2021-09-08 15:04:26 -03:00
Matthew Chen
e2ac6b609b Fix rebase breakage. 2021-09-08 15:04:26 -03:00
Matthew Chen
5f73385216 Overlap load landings. 2021-09-08 15:04:26 -03:00
Matthew Chen
de8ac4cea1 Overlap load landings. 2021-09-08 15:04:26 -03:00
Matthew Chen
799a284478 Overlap load landings. 2021-09-08 15:04:26 -03:00
Matthew Chen
954400551f Simplify web socket background state. 2021-09-08 14:59:41 -03:00
Matthew Chen
12e5b2a3fa Port OWSWebSocket to Swift. 2021-09-08 14:59:41 -03:00
Matthew Chen
85192894cb Design feedback around message forwarding flow. 2021-09-08 09:59:41 -03:00
Matthew Chen
8bc8a6b637 Design feedback around message forwarding flow. 2021-09-08 09:59:41 -03:00
Matthew Chen
47b9c36434 Fix styling in body text edge cases. 2021-09-04 23:09:53 -03:00
Michelle Linington
7e6e99074e PR Feedback 2021-09-03 16:11:19 -07:00
Michelle Linington
88309e7cc1 Fix various issues with TESTABLE_RELEASE
While running some perf tests on database queries, I was building
against TESTABLE_RELEASE to have things built with optimizations.

I saw some weird behavior:
- Share extension would crash
- No logs would be recorded

I went through and cleaned up some things that appeared incorrect with
how we handled TESTABLE_RELEASE
2021-09-03 16:11:19 -07:00
Michelle Linington
47bf28e82d IOS-1828: CallKitCallUIAdaptee not checking providerDidBegin:
Fixes a bug where we can race talking to callservicesd when starting our
first call. More detailed analysis of logs in IOS-1345 but briefly:

1. We construct a CXProvider with a maxCallGroup config of 1.
    \- XPC to callservicesd

2. We start a call.
    \- XPC to callservicesd

3. callservicesd processes the startCall message first. Sees we don't
   have a configuration set up. Assumes maxCallGroup config value of 0.
   Fails to start the call with error code: .maximumCallGroupsReached

4. callservicesd processes the configuration update and now we have a
   maximumCallGroups of 1.

By delaying all of our CXProvider requests until after we receive a
delegate callback that -providerDidBegin:, we should be able to order
our requests in a way CallKit expects.
2021-09-03 14:23:10 -07:00
Michelle Linington
d4cc667f9b Additional strategies to avoid prekey ratelimit
- First, we should skip fetching prekeys for transient messages in our
  advisory call to -ensureSessionsForMessageSend:ignoreErrors:. We
  already skip transient messages in our prekey fetch where errors *do*
  matter, so this additional check should be able to skip the prekey
  fetch as well.

- OWSOutgoingReceiptManager should stop trying to send receipts to
  recipients that are untrusted. This just burns through prekey fetches
  for sends that we know will fail anyway.

- SafetyNumberConfirmationSheet should handle marking a recipient as
  trusted. Callers are hit or miss on whether they actually update the
  verification state.

- These fixes also happen to make SafetyNumberConfirmationSheet
  presentation a bit more reliable. Before, multiple confirmation sheets
  might flash in quick succession. This seems to fix that
2021-09-03 14:16:33 -07:00
Matthew Chen
6bd73d581d Fix rebase break. 2021-09-03 17:26:00 -03:00
Matthew Chen
a1ae473e05 Add logging around missing notifications. 2021-09-03 17:19:59 -03:00
Nora Trapp
cd3460337d Address rebase conflicts 2021-09-03 11:48:06 -07:00
Nora Trapp
2814ab7629 Convert to new Promise library 2021-09-03 11:41:34 -07:00
Matthew Chen
1ddbe154f9 Fix audio message layout. 2021-09-03 09:09:27 -03:00
Matthew Chen
784f95cb2f Tune the sticky header background colors. 2021-09-03 09:09:27 -03:00
Matthew Chen
7f424ea2ee Fix sticky header animations. 2021-09-03 09:09:27 -03:00
Matthew Chen
2b502ad609 Elaborate logging around missing notifications. 2021-09-02 22:51:26 -03:00
Jim Gustafson
b75e231f9f Reverting and improving audio session decision block 2021-09-01 19:41:55 -07:00
Jim Gustafson
8bcab37f76 Fix low volume issue for incoming video call 2021-09-01 19:41:55 -07:00
Matthew Chen
29de97ee43 Merge branch 'release/5.19.0' 2021-09-01 17:52:39 -03:00
Michelle Linington
64b2c3b625 Update to RingRTC v2.12.0 2021-09-01 12:51:39 -07:00
Matthew Chen
d240d29713 Disable verbose load logging in CVC. 2021-09-01 16:46:09 -03:00
Matthew Chen
49f83b35ec Refine payments formatting. 2021-09-01 16:30:49 -03:00
Matthew Chen
c4438b866d Respond to CR. 2021-09-01 10:36:56 -03:00
Matthew Chen
52ea1c3389 Clean up ahead of PR. 2021-09-01 09:34:30 -03:00
Matthew Chen
f8a8e67150 Only use compact spacing within a cluster. 2021-09-01 09:34:30 -03:00
Matthew Chen
00a27d2f27 Add sticky headers to CVC. 2021-09-01 09:34:30 -03:00
Matthew Chen
90d0d395dd Add background bubble to date headers. 2021-09-01 09:34:30 -03:00
Matthew Chen
2005be536b Update date header and message footer date formatting. 2021-09-01 09:34:30 -03:00