Commit Graph

3466 Commits

Author SHA1 Message Date
Matthew Chen
e552062be8 Refine error handling in group profile fetching. 2021-04-05 16:22:26 -03:00
Nora Trapp
e5e9729293 Increase notification delay 2021-04-01 15:13:17 -07:00
Nora Trapp
0ef7fc24e6 Revert database recovery attempts, just flag when we detect corruption and prevent app launch. 2021-04-01 12:50:41 -07:00
Nora Trapp
722675525d Change device transfer hotswap to avoid database corruption. 2021-04-01 12:50:41 -07:00
Nora Trapp
db5532b590 protect database recovery from orphan data cleaner 2021-04-01 12:50:41 -07:00
Nora Trapp
4e535fa7ef Make database recovery async 2021-04-01 12:50:41 -07:00
Nora Trapp
9ce747a5ca Fix retain cycles 2021-04-01 10:38:18 -07:00
Nora Trapp
8c9a925b72 Re-style message detail view 2021-04-01 10:38:18 -07:00
Nora Trapp
1bd5db62dd Swipe left for message details. 2021-04-01 10:38:18 -07:00
Nora Trapp
24d1b5ff37 Display updated action sheet when tapping safety number change 'learn more' 2021-03-31 13:14:46 -07:00
Matthew Chen
6ecd2c2299 Merge branch 'release/5.8.1' 2021-03-31 00:10:49 -03:00
Nora Trapp
5b66cc4a7a Fix groups v2 bug 2021-03-30 23:12:36 -03:00
Nora Trapp
95227b1195 Add support filter selection to contact us flow 2021-03-29 15:23:10 -07:00
Matthew Chen
1338d44837 Don't clear profile when profile key changes. 2021-03-29 16:56:29 -03:00
Nora Trapp
c40a786050 Fix extensions in post YDB world 2021-03-27 12:13:20 -07:00
Nora Trapp
6c17505b68 Sync mute with storage service 2021-03-27 12:13:20 -07:00
Nora Trapp
4dae0ce79a Convert all non-sticker images to jpg 2021-03-27 12:12:46 -07:00
Matthew Chen
766c468354 Ensure profile key credentials are updated in lockstep. 2021-03-25 16:35:22 -03:00
Matthew Chen
7270771927 Ensure local profile key credentials are updated in lockstep with local profile key. 2021-03-25 16:35:21 -03:00
Matthew Chen
43c7143b78 Fill in missing profile names more aggressively. 2021-03-25 14:55:16 -03:00
Matthew Chen
6b2e8dc359 Respond to CR. 2021-03-25 14:32:53 -03:00
Matthew Chen
86b8eb08b8 Remove YapDatabase.
Apply asset from design.

Fix rebase breakage.
2021-03-25 11:41:16 -03:00
Matthew Chen
0ff23b8f21 Clean up app readiness. 2021-03-25 10:52:31 -03:00
Matthew Chen
b4aa2aa1c3 Clean up app readiness. 2021-03-25 09:36:16 -03:00
Matthew Chen
5a38487b40 Make dependency accessors final where possible. 2021-03-25 09:24:27 -03:00
Matthew Chen
d0cbf8cfd0 Rework dependency access. 2021-03-25 09:24:27 -03:00
Matthew Chen
af1e1d0eb3 Rework dependency access. 2021-03-25 09:24:27 -03:00
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