Commit graph

728 commits

Author SHA1 Message Date
Matthew Chen 50a59c907d Detect and handle corrupt database views. 2018-04-25 09:30:23 -04:00
Matthew Chen d3b484482c Detect and handle corrupt database views. 2018-04-25 09:30:23 -04:00
Matthew Chen d3fb5d321d Fix build break. 2018-04-24 13:48:36 -04:00
Matthew Chen c5981b164b Notify users of corrupt messages. 2018-04-24 13:41:44 -04:00
Matthew Chen fa9a4c808a Simplify usage of contacts framework. 2018-04-24 13:21:12 -04:00
Matthew Chen 7f23dfa258 Respond to CR. 2018-04-24 13:15:11 -04:00
Matthew Chen 2265ae08aa Don't start app version migrations until storage is ready. 2018-04-24 11:56:32 -04:00
Michael Kirk d1230abdc5 Fix type declaration
// FREEBIE
2018-04-21 20:00:57 -04:00
Michael Kirk 1f63ce02a0 Increase cache, remove dead code, add debug logging
// FREEBIE
2018-04-21 20:00:57 -04:00
Michael Kirk b3cd6a112b Add OWSJanksUI assertion
// FREEBIE
2018-04-21 20:00:56 -04:00
Michael Kirk 9c81eb44a1 Replace remaining UI usage of interaction.description
// FREEBIE
2018-04-21 19:21:18 -04:00
Michael Kirk 897d4a925b HomeView caches thread models
// FREEBIE
2018-04-21 19:21:18 -04:00
Michael Kirk 5f2b38c50b Introduce Thread view model
// FREEBIE
2018-04-21 19:21:18 -04:00
Michael Kirk 1fb1b5bbe2 WIP unjank home screen
verify `description` isn't used elsewhere (notifications? conversation
view?)

Probably want to remove overzealous asserts for now, but would be good
to work towards leaving them enabled.

// FREEBIE
2018-04-21 19:21:18 -04:00
Matthew Chen 7912598ccb Merge branch 'release/2.24.0' 2018-04-21 14:27:27 -04:00
Matthew Chen 08d36aa862 Add screen lock UI to SAE. 2018-04-20 16:39:35 -04:00
Michael Kirk eec7678979 Group's meta message defaults to "Delivery"
// FREEBIE
2018-04-19 14:57:42 -04:00
Matthew Chen 2c43d20ee8 Merge tag '2.24.0.9' 2018-04-18 17:40:10 -04:00
Matthew Chen 35ee8c1a0d Rework flush of registration connection(s). 2018-04-18 17:38:13 -04:00
Matthew Chen a264268253 Rework flush of registration connection(s). 2018-04-18 17:38:13 -04:00
Matthew Chen e1138df771 Rework flush of registration connection(s). 2018-04-18 17:38:13 -04:00
Matthew Chen 5bbce14020 Rework flush of registration connection(s). 2018-04-18 17:38:13 -04:00
Matthew Chen 5d627ee89f Rework flush of registration connection(s). 2018-04-18 17:38:13 -04:00
Matthew Chen 4f1f1a107f Rework flush of registration connection(s). 2018-04-18 17:38:13 -04:00
Michael Kirk c88ce07f66 CR: Clean up comments, use property setter instead of ivar
// FREEBIE
2018-04-18 15:32:01 -04:00
Michael Kirk eb140a6839 Timer info messages *before* the message which changed the timer
// FREEBIE
2018-04-18 15:32:01 -04:00
Michael Kirk a9e7c5e879 Cleanup: simplify migration, remove unused code
// FREEBIE
2018-04-18 15:32:01 -04:00
Michael Kirk 754549adf1 Start timer for expiring message based on when read receipt was sent
// FREEBIE
2018-04-18 15:32:01 -04:00
Michael Kirk dfb2a034af Use explicit transactions.
- Start expiration within scope of existing transaction when we're
  already in a transaction

// FREEBIE
2018-04-18 15:32:01 -04:00
Michael Kirk b7625689cb Simplify reasoning around disappearing messages
1. Max duration between runs is now a separate timer we set up once and
   don't touch, so we can separate any potential bugs in scheduling logic.
2. When we want to "run now" we just run now, rather than going through
   the scheduler.
3. Detect if messages aren't being deleted in a timely way.

// FREEBIE
2018-04-18 15:32:01 -04:00
Michael Kirk 57ae2b173f Clarify existing functionality, but no change in behavior
rename vars
use clearer date comparison method

// FREEBIE
2018-04-18 15:32:01 -04:00
Matthew Chen eb51ea42e3 Merge remote-tracking branch 'origin/hotfix/2.23.4' 2018-04-16 17:46:24 -04:00
Michael Kirk 66f028a3b3 Update nullability
If object is nil, which it can be, Swift freaks out, since we'd promised
it would never be nil.

// FREEBIE
2018-04-16 17:31:23 -04:00
Matthew Chen 85cb78ddfe Add mainWindow property to app context. 2018-04-16 17:31:00 -04:00
Matthew Chen 5ce39337ed Handle malformed protos. 2018-04-16 16:15:46 -04:00
Michael Kirk c926ca10a5 Update nullability
If object is nil, which it can be, Swift freaks out, since we'd promised
it would never be nil.

// FREEBIE
2018-04-16 16:08:31 -04:00
Matthew Chen 9c93099515 Fix incomplete asserts. 2018-04-13 15:01:25 -04:00
Matthew Chen 6caa5b87b6 Add more asserts around thread in SAE. 2018-04-13 14:59:38 -04:00
Michael Kirk e554884ab3 Use profile name in quoted messages, fix "multi account" label
// FREEBIE
2018-04-13 09:53:31 -04:00
Matthew Chen 829cfd0428 Reduce oversize text size. 2018-04-11 17:57:53 -04:00
Matthew Chen 45892e822b Move 'background' check in message processing logic off main thread. 2018-04-11 15:30:31 -04:00
Michael Kirk b2b70258f2 Make our protos backwards compatible with Signal-Android
Android doesn't have a flags field (yet?). We should make sure our
existing fields align with theirs.

// FREEBIE
2018-04-11 15:16:23 -04:00
Michael Kirk bd8e03fe8a Fix spurious "Group Updated" message
Regression introduced in Message factory method refactor (not in the wild).

// FREEBIE
2018-04-11 15:15:54 -04:00
Matthew Chen d95f2bdc66 Respond to CR. 2018-04-11 14:45:27 -04:00
Matthew Chen d561ba4c62 Reduce 0xdead10cc crashes. 2018-04-11 14:44:03 -04:00
Matthew Chen db6f1326bb Fix previews of oversize text messages. 2018-04-11 13:51:12 -04:00
Matthew Chen 83a470d441 Fix previews of oversize text messages. 2018-04-11 13:51:12 -04:00
Matthew Chen abba24988c Rework how dates are formatted in home view. 2018-04-11 09:34:37 -04:00
Michael Kirk d94709e13f Show label when captioning limit has been reached.
// FREEBIE
2018-04-10 16:00:19 -04:00
Michael Kirk 6b6f4f9336 Limit caption length
// FREEBIE
2018-04-10 16:00:19 -04:00