Commit Graph

18833 Commits

Author SHA1 Message Date
Matthew Chen
9cdff9728d Add Fair and Unfair atomics. 2020-08-07 17:42:05 -03:00
Matthew Chen
1c877f656f Merge branch 'charlesmchen/reduceProfileChangeNotifications' into release/3.14.0 2020-08-07 17:38:47 -03:00
Matthew Chen
b9b185c433 Avoid firing profile change notifications in response to changes to lastFetchDate. 2020-08-07 17:38:25 -03:00
Matthew Chen
09bb503eb1 Merge branch 'charlesmchen/accountAndAddressSorting' into release/3.14.0 2020-08-07 17:33:31 -03:00
Matthew Chen
348ba7608f Respond to CR. 2020-08-07 17:33:10 -03:00
Matthew Chen
667250e118 Fix perf of signal address sorting. 2020-08-07 17:19:19 -03:00
Matthew Chen
36baf6f5ab Fix perf of signal account sorting. 2020-08-07 17:19:19 -03:00
Matthew Chen
6c9a9fdd94 Fix perf of signal account sorting. 2020-08-07 17:19:19 -03:00
Matthew Chen
6f2195b03c Merge branch 'nt/mentions-ff' into release/3.14.0 2020-08-07 17:18:31 -03:00
Nora Trapp
cfe9862d94 Mentions Remote Flag 2020-08-07 17:16:35 -03:00
Matthew Chen
7ec9ecbe73 Merge branch 'charlesmchen/groupsV2decryptionCache' into release/3.14.0 2020-08-07 17:14:46 -03:00
Matthew Chen
279216bc29 Respond to CR. 2020-08-07 17:14:07 -03:00
Matthew Chen
01076ac699 Cache gv2 decryption. 2020-08-07 17:04:08 -03:00
Matthew Chen
fbfc20f81a Cache gv2 decryption. 2020-08-07 17:04:08 -03:00
Matthew Chen
184e2dbebd Merge branch 'charlesmchen/groupsV2updateMessages' into release/3.14.0 2020-08-07 17:01:42 -03:00
Matthew Chen
c3b8fbd612 Rework sending of group update messages. 2020-08-07 16:59:13 -03:00
Michelle Linington
16bade97bb Merge branch 'mlin/PR/IOS-723' into release/3.14.0 2020-08-07 12:22:38 -07:00
Michelle Linington
ad554877aa IOS-723: Crash when trying to send memoji from the emoji keyboard
Fixes a bug where a nil MessageBody was passed to a Swift initializer
expecting non-nil. To fix, OutgoingMessagePreparer.init will now accept
a nil MessageBody and process it correctly.
2020-08-07 12:21:00 -07:00
Matthew Chen
d10bd8fef3 "Bump build to 3.14.0.19." (Internal) 2020-08-07 10:28:31 -03:00
Matthew Chen
c09a40bec8 Merge branch 'charlesmchen/modelCacheVsUuidMapping' 2020-08-06 22:35:47 -03:00
Matthew Chen
ebb40f84a7 Respond to CR. 2020-08-06 22:35:37 -03:00
Matthew Chen
a8cf29c6c5 Ensure model cache robust to UUID mapping edge cases. 2020-08-06 22:27:45 -03:00
Matthew Chen
9daa11518d Ensure model cache robust to UUID mapping edge cases. 2020-08-06 22:27:45 -03:00
Matthew Chen
59f1e9a9d1 Ensure model cache robust to UUID mapping edge cases. 2020-08-06 22:27:45 -03:00
Matthew Chen
aff2c6684a Ensure model cache robust to UUID mapping edge cases. 2020-08-06 22:27:45 -03:00
Matthew Chen
a4140b2dbd "Bump build to 3.14.0.18." (Internal) 2020-08-06 22:27:30 -03:00
Michelle Linington
da89c457ce Update Pods submodule commit 2020-08-06 16:07:25 -07:00
Michelle Linington
2ebbd74b2e Merge branch 'mlin/PR/IOS-668' 2020-08-06 13:23:41 -07:00
Michelle Linington
308cfaa1c8 Update Pods submodule commit 2020-08-06 13:12:25 -07:00
Michelle Linington
cbfb410fa8 Update to new SignalServiceAddress initializers post-rebase 2020-08-06 12:59:21 -07:00
Michelle Linington
3f746368cd PR feedback:
- Adjust how clients provide QoS information to ContactDiscoveryTask
- Fix an issue where legacy CDS was reporting a generic server failure
  as a result of network failures.
- ContactDiscoveryTask will no longer error on an empty set
- Remove CDSFeedback operation
2020-08-06 12:57:39 -07:00
Michelle Linington
fc74805e6a Fix up some log statements 2020-08-06 12:57:39 -07:00
Michelle Linington
fc5ac739aa Move everything to the new ContactDiscoveryTask
UUIDBackfillTask and OWSMessageSender were initializing
ContactDiscoveryOperations themselves and rolling their own database
update logic. Instead, they should be leveraging ContactDiscoveryTask.
2020-08-06 12:57:39 -07:00
Michelle Linington
8b5eb23260 Migrate ContactDiscoveryOperations to Promises
ContactDiscoveryOperations now return Promises and is no longer a
subclass of OWSOperation.

LegacyContactDiscoveryOperation needed some small changes, but was not
relying on dependent operations, so there wasn't anything too
significant.

ModernContactDiscoveryOperation was already using Promises in its
implementation. It required surfacing that promise. Dependent operations
are now represented in an array of sub-promises that are all joined
before completing. CDSBatchOperation was removed.

This change also makes everything that's not ContactDiscoveryTask
non-objc and non-public. Callers should really be using
ContactDiscoveryTask anyway.
2020-08-06 12:55:32 -07:00
Michelle Linington
a660a81d0f IOS-668: Reorganize how ContactsUpdater interacts with CDS operations
- Removes ContactsUpdater singleton. It wasn't really tracking much
  state anyway
- Introduces ContactDiscoveryTask. This creates a
  ContactDiscoveryOperation (modern or legacy) and updates the
  SignalRecipients database on completion. Returns a promise.
- Begin migrating away from operation queues

PromiseKit is weird about priority propogation, so this shouldn't be
used yet. Since all then closures are asynced, priorities don't
propogate down to underlying queues. This means the a
ContactDiscoveryTask on the main queue will not boost the priority on
the ModernContactDiscoverOperation's owned operation queue
2020-08-06 12:55:32 -07:00
Nora Trapp
df8d9b8635 Merge branch 'nt/a-few-more-mention-tweaks' 2020-08-06 09:58:30 -07:00
Nora Trapp
645e352d51 Better MentionPicker resizing behavior 2020-08-06 09:58:12 -07:00
Nora Trapp
cb3fe88e1b Fix mentions in sent transcripts 2020-08-06 09:58:12 -07:00
Matthew Chen
47ee2b26a2 Update 'make group member admin' copy. 2020-08-06 11:40:50 -03:00
Matthew Chen
6a9016025b Merge branch 'charlesmchen/groupsV2addPendingMembers' 2020-08-06 11:23:35 -03:00
Matthew Chen
a0f4795421 Clean up ahead of PR. 2020-08-06 11:23:16 -03:00
Matthew Chen
2c2d39676d Clean up ahead of PR. 2020-08-06 11:23:16 -03:00
Matthew Chen
3255fc3dfe Add pending members. 2020-08-06 11:23:16 -03:00
Matthew Chen
e79f8df04f Merge branch 'charlesmchen/localUserAndUuidMappingEdgeCases' 2020-08-06 11:04:34 -03:00
Matthew Chen
f5501b3a70 Improve handling of local user and uuid mapping edge cases. 2020-08-06 11:04:15 -03:00
Matthew Chen
9608b9dc58 Improve handling of local user and uuid mapping edge cases. 2020-08-06 11:04:15 -03:00
Matthew Chen
bf38bcc44d Improve handling of local user and uuid mapping edge cases. 2020-08-06 11:04:15 -03:00
Matthew Chen
e42e65aa1e "Bump build to 3.14.0.17." (Internal) 2020-08-06 09:56:55 -03:00
Nora Trapp
fdc3847b13 Merge branch 'nt/address-tweaks-more' 2020-08-05 14:38:09 -07:00
Nora Trapp
080adcae01 Fix ensureAccountId 2020-08-05 14:37:34 -07:00