Commit Graph

3439 Commits

Author SHA1 Message Date
Jordan Rose
1a55d29922 Prefix AxolotlKit session model classes with "Legacy"
PreKeyRecord, PreKeyBundle, and SignedPreKeyBundle are still used
outside of serialized sessions, so it doesn't make sense to mark them
"Legacy" just yet. Additionally, the keyed archiver overrides have to
be set up before any instances are unarchived, which is trickier for
these remaining model types.
2021-03-22 16:19:31 -07:00
Jordan Rose
68a27a76e2 Move AxolotlKit model classes into SSK and remove the dependency
We still need the AxolotlKit model classes to migrate old sessions,
but we don't need any of the actual protocol support. This also
means we can drop HKDFKit.

Additionally, we do still use some utilities from AxolotlKit:

- AxolotlExceptions.h: NSException names, should eventually be
  replaced by NSErrors everywhere

- NSData+keyVersionByte.h: prepend/remove public key type byte,
  should eventually be replaced by strong types (ECPublicKey)

- SPKProtocolContext.h: defines the SPKProtocol{Read,Write}Context
  marker protocols, should be replaced by direct use of
  SDSAny{Read,Write}Transaction
2021-03-22 16:17:47 -07:00
Matthew Chen
df1dcb9e6c Avoid profile key rotation loop. 2021-03-21 17:05:57 -03:00
Matthew Chen
6e0ef6f3a1 Avoid profile key rotation loop. 2021-03-21 16:56:09 -03:00
Matthew Chen
d60ca9f7f4 Improve logging around malformed group attribute blobs. 2021-03-19 22:11:13 -03:00
Matthew Chen
4a6d6db8e9 Fix "required revision" checks. 2021-03-19 22:07:57 -03:00
Matthew Chen
03141a9ef5 Respond to CR. 2021-03-17 21:40:13 -03:00
Matthew Chen
f3f7eb3386 Fix issue around profile key updates for groups with stale group state. 2021-03-17 19:18:38 -03:00
Nora Trapp
303b3220d9 Actually thumbnail attachments on the attachment preview view 2021-03-17 13:15:51 -07:00
Nora Trapp
9511128ad9 Fix status bar issue 2021-03-17 13:15:51 -07:00
Michelle Linington
f483ee2cac Fixes some name collision bugs
- Fixes up content alignment issues from parallel changes to table view
  styling.
- Re-adds view controller presentation within a nav controller (stemming
  from parallel changes to table view styling)
- Fixes a bug around overzealous collision detection

Also fixes an unrelated issue. Setting up cv banners performs layout, which
can cause the conversation view controller's trait collection to change.
This can lead to us reenterantly setting up banners and updating trait
collection.

The workaround is to just call -ensureBannerState asynchronously from
-traitCollectionDidChange to break the synchronous chain.
2021-03-17 01:14:25 -07:00
Nora Trapp
ab85b22856 Use CGImageSource for downsampling attachments 2021-03-15 15:05:36 -07:00
Nora Trapp
cb32d88056 Improve storage service sync handling of profile changes 2021-03-12 17:05:02 -08:00
Matthew Chen
6f737748e9 Avoid profile key conflicts. 2021-03-12 17:05:02 -08:00
Nora Trapp
4743cf9af3 PR Feedback 2021-03-12 16:59:56 -08:00
Nora Trapp
ab01ec94aa Fix local profile key changed notification 2021-03-12 16:59:56 -08:00
Nora Trapp
2bb61cd700 Ensure we're never using a profile key that is newer than our latest profile on the service 2021-03-12 16:59:56 -08:00
Nora Trapp
d81849b7c8 Allow settings cells to span multiple lines, restyle disappearing messages cell 2021-03-10 12:15:03 -08:00
Nora Trapp
0785e301cf Clear SignalAttachment caches when we get a memory warning 2021-03-09 12:37:36 -08:00
Nora Trapp
67294588e4 more little tweaks 2021-03-09 12:30:31 -08:00
Nora Trapp
49c17f2af8 Add new delete account flow 2021-03-09 12:17:32 -08:00
Nora Trapp
62726a5e7c Tweak table colors in dark mode 2021-03-09 12:17:31 -08:00
Matthew Chen
aaf492f809 Improve group change logging. 2021-03-09 09:25:28 -03:00
Nora Trapp
508209d546 Animate navbar style changes 2021-03-05 12:48:59 -08:00
Nora Trapp
c5a1cd6351 A few small color and font tweaks 2021-03-05 12:48:59 -08:00
Nora Trapp
1fda196c84 Add assert on new iOS version 2021-03-05 12:48:59 -08:00
Nora Trapp
7c3a035eea Fix bug where navbar turns dark during interactive modal dismissal 2021-03-05 12:48:59 -08:00
Nora Trapp
ad58292cd1 Fix disappearing navbar 2021-03-05 09:08:12 -08:00
Nora Trapp
470e6afb26 Hide navbar background when scrolled to top 2021-03-05 09:07:00 -08:00
Matthew Chen
f359af8ae6 Revert "Hide navbar background when scrolled to top"
This reverts commit 734a26ad71.
2021-03-05 13:56:22 -03:00
Nora Trapp
2e1d2e1623 Show specific biometry type screen lock will use 2021-03-05 00:32:16 -08:00
Nora Trapp
734a26ad71 Hide navbar background when scrolled to top 2021-03-05 00:31:50 -08:00
Nora Trapp
91c8b4a250 Further design feedback 2021-03-04 18:32:24 -08:00
Nora Trapp
450870de44 Design feedback 2021-03-04 18:32:24 -08:00
Matthew Chen
3c9dfe46be Refine new table style. 2021-03-04 17:17:04 -03:00
Jordan Rose
15a4a1a9cd MediaGallery: delete old Finder API, including its Yap implementation 2021-03-04 10:30:54 -08:00
Jordan Rose
76b716462e SSK: Make OrderedDictionary a struct and improve it a bit
- Now a struct, meaning no need for a clone() method
- Now a RandomAccessCollection indexed by Int
- Removed the subscript setter that EarlyMessageManager was using to
  make the reordering behavior more explicit
- Generalized insert(key:value:isAppend:) to insert(key:at:value:)
- Added removeSubrange(_:)
2021-03-04 10:30:54 -08:00
Nora Trapp
5f1435113e Re-style privacy settings, group creation, compose, and other miscellany 2021-03-03 20:32:36 -08:00
Nora Trapp
80e188b46d Present profile subviews in modal 2021-03-03 20:29:41 -08:00
Nora Trapp
87720bc22d Notification settings restyle 2021-03-03 20:29:41 -08:00
Nora Trapp
19cb5dc27b Add chats settings 2021-03-03 20:29:41 -08:00
Nora Trapp
d1845e753d Update wallpaper stylings 2021-03-03 20:29:40 -08:00
Nora Trapp
88d7821b60 Update profile settings view styles 2021-03-03 20:29:40 -08:00
Nora Trapp
232bb2f8af Change over a bunch of tables and design feedback 2021-03-03 20:29:40 -08:00
Nora Trapp
8b4f6c1ad4 Allow the navigation bar color to exactly match its underlying color 2021-03-03 20:29:40 -08:00
Nora Trapp
325f87a1cb Initial App settings restyling 2021-03-03 20:29:40 -08:00
Michelle Linington
852e8261d8 Lint 2021-03-03 12:51:07 -08:00
Michelle Linington
10533102d6 Additional PR Feedback
- Remove some test-only code
- Since we're prewarming our collision finder off the main thread, the
  ready flag should be made thread-safe.
2021-03-03 12:51:07 -08:00
Michelle Linington
adabc1a06e PR Feedback
The most significant change here is we defer initial loading of
collision interactions. We shouldn't block the main thread during
conversation presentation.

Instead, we'll perform it at UserInitiatedQoS. Once complete, we'll call
-ensureBannerState. Subsequent banner state updates will use the cached
interactions to find name collisions.
2021-03-03 12:51:07 -08:00
Michelle Linington
4bb70840b9 Improve sorting of collisions 2021-03-03 12:51:07 -08:00