Commit Graph

305 Commits (9e7c25af15caeb170f4c7159cadad18351f85bd3)

Author SHA1 Message Date
Michael Kirk 3a03c4f74c WIP: message indexing 7 years ago
Michael Kirk b00e5a4fd9 Fuzzier search matching
-[] Backend
  -[] indexes e5.25
    -[x] wire up results: Contacts / Conversations / Messages actual: 3hr
    -[ ] group thread est: actual:
      -[x] group name actual: e.25
      -[ ] group member name: e.25
      -[ ] group member number: e.25
    -[ ] contact thread e.5
      -[ ] name
      -[ ] number
    -[ ] messages e1
      -[ ] content
-[] Frontend e10.75
  -[x] wire up VC's a.5
  -[x] show search results only when search box has content a.25
  -[] show search results: Contact / Conversation / Messages e2
   -[x] wire up matchs
   -[] style contact cell
   -[] style conversation cell
   -[] style messages cell
  -[] tapping thread search result takes you to conversation e1
  -[] tapping message search result takes you to message e1
  -[] show snippet text for matched message e1
  -[] highlight matched text in thread e3
  -[] go to next search result in thread e2
  -[] No Results page
  -[] Hide search unless pulled down
7 years ago
Michael Kirk a9e2834d9f WIP: FTS - rudimentary show results
-[] Backend
  -[] indexes e5.25
    -[x] wire up results: Contacts / Conversations / Messages actual: 3hr
    -[ ] group thread est: actual:
      -[x] group name actual: e.25
      -[ ] group member name: e.25
      -[ ] group member number: e.25
    -[ ] contact thread e.5
      -[ ] name
      -[ ] number
    -[ ] messages e1
      -[ ] content
-[] Frontend e10.75
  -[x] wire up VC's a.5
  -[x] show search results only when search box has content a.25
  -[] show search results: Contact / Conversation / Messages e2
   -[x] wire up matchs
   -[] style contact cell
   -[] style conversation cell
   -[] style messages cell
  -[] tapping thread search result takes you to conversation e1
  -[] tapping message search result takes you to message e1
  -[] show snippet text for matched message e1
  -[] highlight matched text in thread e3
  -[] go to next search result in thread e2
  -[] No Results page
  -[] Hide search unless pulled down
7 years ago
Michael Kirk 7df158120b Fix build warnings: mark initWithCoder as designated.
// FREEBIE
7 years ago
Michael Kirk 00f8ea4ff8 Use a single ui connection to share cache.
Primarly two things:
1. using an extension for the first time per connection is slow
2. fetching the same objects (e.g. if you leave/re-enter the same
conversation)

// FREEBIE
8 years ago
Matthew Chen 3cd6a33aa6 Fix build warnings. 8 years ago
Matthew Chen d62725d3b7 Add reported application state. 8 years ago
Michael Kirk a10ae1835e respond to code review
// FREEBIE
8 years ago
Michael Kirk 5ba5e98260 Show downloaded contact avatar in thread
// FREEBIE
8 years ago
Michael Kirk 7a1d24a9ab Avatar updates when contact/profile/group photo changes
// FREEBIE
8 years ago
Matthew Chen aa35594ad5 Respond to CR. 8 years ago
Matthew Chen 67f2d6608f Detect and handle corrupt database views. 8 years ago
Matthew Chen 1a4c01ae29 Detect and handle corrupt database views. 8 years ago
Matthew Chen 212891c50d Detect and handle corrupt database views. 8 years ago
Matthew Chen f70a45ef1b Clean up ahead of PR. 8 years ago
Matthew Chen 50a59c907d Detect and handle corrupt database views. 8 years ago
Matthew Chen d3b484482c Detect and handle corrupt database views. 8 years ago
Matthew Chen 7f23dfa258 Respond to CR. 8 years ago
Matthew Chen 2265ae08aa Don't start app version migrations until storage is ready. 8 years ago
Michael Kirk b3cd6a112b Add OWSJanksUI assertion
// FREEBIE
8 years ago
Michael Kirk 897d4a925b HomeView caches thread models
// FREEBIE
8 years ago
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
8 years ago
Matthew Chen 35ee8c1a0d Rework flush of registration connection(s). 8 years ago
Matthew Chen a264268253 Rework flush of registration connection(s). 8 years ago
Matthew Chen e1138df771 Rework flush of registration connection(s). 8 years ago
Matthew Chen 5bbce14020 Rework flush of registration connection(s). 8 years ago
Matthew Chen 5d627ee89f Rework flush of registration connection(s). 8 years ago
Matthew Chen 4f1f1a107f Rework flush of registration connection(s). 8 years ago
Matthew Chen 65015e686f Tap on quoted replies. 8 years ago
Michael Kirk 622f6bdf21 OrphanDataCleaner vs. QuotedAttachment thumbnails
// FREEBIE
8 years ago
Matthew Chen 4915c127cb Rework quoted reply debug UI. 8 years ago
Matthew Chen 9dfc955ee5 Fix flush of registration connections. 8 years ago
Matthew Chen 684614013e Revert "Fix flush of registration connections."
This reverts commit 52b238c499.
8 years ago
Matthew Chen 52b238c499 Fix flush of registration connections. 8 years ago
Matthew Chen 4602ad9014 Respond to CR. 8 years ago
Matthew Chen 1dced463cb Lazy restore attachments. 8 years ago
Matthew Chen 61dc2c0249 Add local cache of backup fragment metadata. 8 years ago
Matthew Chen e88f5643f7 Add local cache of backup fragment metadata. 8 years ago
Matthew Chen d0c691bb7f Lazy attachment restores. 8 years ago
Matthew Chen 610bbacd21 Clean up ahead of PR. 8 years ago
Matthew Chen 0c81d5656f Rework database snapshot representation, encryption, etc. 8 years ago
Matthew Chen 1bbd41f725 Improve perf of database snapshots. 8 years ago
Michael Kirk a0bd2c2324 OrphanDataCleaner shouldn't delete active thumbnails
// FREEBIE
8 years ago
Michael Kirk dfd628250d Gallery performance
- [x] share uiDatabaseConnection to share cache
- [x] increase cache size
- [x] load less initially
- [x] lazy loading
  - [x] slider view
  - [x] tile view

// FREEBIE
8 years ago
Michael Kirk 4ac9a1019b Media page view controller
First pass at a swipe-through media view for conversations.

Future work could include

- title label per item
  - sender name
  - date/time
- photo rail
- include caption

// FREEBIE
8 years ago
Matthew Chen 4746948dfe Respond to CR. 8 years ago
Matthew Chen 3f822e8ce3 Complete minimal backup MVP. 8 years ago
Matthew Chen 0971bad4b2 Upload database and manifest files to CloudKit. 8 years ago
Matthew Chen c84bf81cf3 Export database for backup. 8 years ago
Matthew Chen 46a89e89f0 Sketch out OWSBackupStorage. 8 years ago
Matthew Chen 792be8018f Incremental backup. 8 years ago
Matthew Chen 692ef423be Rename TSStorageManager to OWSPrimaryStorage. 8 years ago
Matthew Chen d6f4db1523 Rename TSStorageManager to OWSPrimaryStorage. 8 years ago
Michael Kirk 1d3831eccd Registration Lock reminder view
Also fixed: Don't lose PIN across registrations

// FREEBIE
8 years ago
Michael Kirk 54792ff461 Fix overzealous assert.
Sometimes we set values to nil - e.g. when re-registering through
debugUI

// FREEBIE
8 years ago
Matthew Chen 59c745756a Clean up codebase. 8 years ago
Matthew Chen e12a1e984a Work on two-factor auth settings UI. 8 years ago
Matthew Chen 59f480d5c4 Use background tasks during storage registration and disappearing message jobs. 8 years ago
Matthew Chen 4e1e232825 Flush writes from other processes. 8 years ago
Matthew Chen 3bb802189c Use background tasks during db transactions. 8 years ago
Matthew Chen 706006539f Improve the robustness of the migration logic. 8 years ago
Matthew Chen d91507d897 Improve the robustness of the migration logic. 8 years ago
Matthew Chen 9295a56309 Elaborate logging around storage migration. 8 years ago
Michael Kirk 033505afd7 Remove slow file protection updates from launch path
To avoid blocking launch, file protection is now updated async for most
moved files. Out of paranoia, the database files are also update
redundantly on a sync code path.

It's still critical that we update permissions recursively for two
reasons:

1. Updating a containing directories FileProtection does not affect
   existing files in that directory.

2. Because we've changed the containers default file protection level
   (from unspecified to NSFileProtectionComplete), some existing files
   will have there file protection updated upon launching Signal 2.20.
   It's not clear to me which files this affects, and I haven't found
   any relevant documentation, but from observation, it seems to affect
   any top-level files in the container. Regardless, we're now doing the
   right thing: after launching 2.20, ensure all file permissions are
   what we expect.

Also removed no-op file protection on legacy db files. They've already
been moved by the time this method runs in AppSetup.

// FREEBIE
8 years ago
Michael Kirk 3d5f7e6bf3 Clean up logging
- tag all log lines for easier filtering
- use up-to-date database path

// FREEBIE
8 years ago
Matthew Chen ba42ac73d8 Revisit TODOs in the SAE work. 8 years ago
Matthew Chen b64528e817 Respond to CR. 8 years ago
Matthew Chen bd0f601792 Respond to CR. 8 years ago
Matthew Chen 38950ae2ed Respond to CR. 8 years ago
Matthew Chen 6b357f9445 Respond to CR. 8 years ago
Matthew Chen 43765ef3b5 Respond to CR. 8 years ago
Matthew Chen 7d3f79440f Clean up ahead of PR. 8 years ago
Matthew Chen bbd689bfd0 Add protocol context to protocol kit. 8 years ago
Matthew Chen 074046b98e Add protocol context to protocol kit. 8 years ago
Matthew Chen 7358f3053f Add protocol context to protocol kit. 8 years ago
Matthew Chen 39e353503f Add protocol context to protocol kit. 8 years ago
Matthew Chen 71782e0369 Add protocol context to protocol kit. 8 years ago
Matthew Chen 122ef91e57 Add protocol context to protocol kit. 8 years ago
Michael Kirk 4f8db63fb3 Ensure keyspec is generated before DB is created
// FREEBIE
8 years ago
Michael Kirk 6f959ff292 CR: be more conservative about deriving key spec, clear old passphrase
after deriving key spec.

// FREEBIE
8 years ago
Michael Kirk d22fc664f2 more granular key access
// FREEBIE
8 years ago
Michael Kirk 426c9baa16 Key material changes
- For new installs, generate raw key-spec rather than derive it
- Adapt to separated concerns of the key derivation migration from the unencrypted header migration
- Reduce number of places where we delete/generate keying information
- Only store relevant keying material

// FREEBIE
8 years ago
Michael Kirk 938b9c85b8 Don't crash on clean install
Otherwise we'll error when retrieving non-existent password.

// FREEBIE
8 years ago
Matthew Chen 4bfdef520a Respond to CR. 8 years ago
Matthew Chen 963d0547ad Clean up ahead of PR. 8 years ago
Matthew Chen ebbe96a5d5 Clean up ahead of PR. 8 years ago
Matthew Chen 6eddfae214 Improve post-migration testing tools. 8 years ago
matthew chen 8325c37191 Fix build breakage. 8 years ago
matthew chen 873c789132 Fix build breakage. 8 years ago
Matthew Chen b9ec7d96e9 Register all database views asynchronously. 8 years ago
Matthew Chen aeeef43416 Register all database views asynchronously. 8 years ago
Matthew Chen eb180ba5c4 Register all database views asynchronously. 8 years ago
Matthew Chen 100adae245 Register all database views asynchronously. 8 years ago
Matthew Chen 5cf89a0f3d Register all database views asynchronously. 8 years ago
Matthew Chen 6f7f1b3b08 Improve pre-migration testing tools. 8 years ago
Matthew Chen 6a81d8e5c2 Respond to CR. 8 years ago
Matthew Chen 0cc7f3e00e Clean up ahead of PR. 8 years ago
Matthew Chen 5d422e03d1 Add support for key specs. 8 years ago
Matthew Chen c5079ed3d7 Add support for key specs. 8 years ago
Matthew Chen a3e77019e2 Update storage to use database salts. 8 years ago
Matthew Chen 173da64bc4 Modify YapDatabase to read converted database, part 1. 8 years ago
Michael Kirk 71dc7f55d3 Copy DB setup / keying from Yap into conversion
// FREEBIE
8 years ago
Matthew Chen 1bff0f2b0e Incomplete commit starting work on loading databases for conversion. 8 years ago
Matthew Chen dc73342573 Convert databases if necessary. 8 years ago
Michael Kirk a423fe8a0e WIP Merge tag '2.19.4.4'
- restore video playback in fullscreen

This was a large merge, so I'm opting to make some changes in separate
commits.
8 years ago
Matthew Chen 0d5b5bc44c Respond to CR. 8 years ago
Matthew Chen 3de9a4ea55 Add debug UI actions around clearing and snapshotting session state. 8 years ago
Matthew Chen 2b528ad894 Don't use mainApplicationState in business logic. 8 years ago
Matthew Chen 76676659f8 Respond to CR. 8 years ago
Matthew Chen 15b8e58324 Retain changes from session database branch. 8 years ago
Matthew Chen 16f7317579 Complete backup restore/import. 8 years ago
Matthew Chen 1839b10550 Retain changes from session database branch. 8 years ago
Matthew Chen 9ac2383a2c Retain changes from session database branch. 8 years ago
Michael Kirk 8d2934d86e CR: remove unnecessary code, comments
// FREEBIE
8 years ago
Matthew Chen d01ec57f0e Fix storage reset. 8 years ago
Michael Kirk 81268012e5 Better keyboard management.
- fixes problems on iOS11.2 where emoji keyboard sometimes obscures text
  input.
- better animation for interactive pan gesture when viewing message
  details
- more intuitive swipe-to-dismiss keyboard in conversation view
- converge on one mnethod for dismissing keyboard in conversation view

- [ ] Pop keyboard, then hit attachment, dismisses keyboard, which is
      fine, but the content should immediately scroll down with the
      keyboard, instead it stays up, and scrolls down only once the
      attachment action sheet has been dismissed.

// FREEBIE
8 years ago
Matthew Chen 05100b1143 Respond to CR. 8 years ago
Matthew Chen 6b0e3508a5 Respond to CR. 8 years ago
Matthew Chen 245304116f Respond to CR. 8 years ago
Matthew Chen 085f8a6f64 Clean up ahead of PR. 8 years ago
Matthew Chen 70926d7f10 Clean up ahead of PR. 8 years ago
Matthew Chen 6b58b4cbde Rework database view registration. 8 years ago
Matthew Chen fe67cd924c Rework database view registration. 8 years ago
Matthew Chen f88b954ab5 Clean up TSStorageManager usage. 8 years ago
Matthew Chen d3efb2e1c9 Clean up TSStorageManager usage. 8 years ago
Matthew Chen d52eba739d Clean up TSStorageManager usage. 8 years ago
Matthew Chen 85686d3144 Continue TSStorageManager refactor. 8 years ago
Matthew Chen 9a990b58e8 Respond to CR. 8 years ago
Matthew Chen 1163e76dee Clean up ahead of PR. 8 years ago
Matthew Chen 5dcf4b3bbc Clean up ahead of PR. 8 years ago
Matthew Chen 137fe6fb8b Pull out OWSStorage base class for TSStorageManager. 8 years ago
Matthew Chen a29c4ce5d6 Pull out OWSStorage base class for TSStorageManager. 8 years ago
Matthew Chen 3643414da1 Respond to CR. 8 years ago
Matthew Chen 571840b1dc Update YapDatabase. 8 years ago
Matthew Chen b9b3eb0541 Clean up ahead of PR. 8 years ago
Matthew Chen 429312523f Simplify OWSUserProfile's "apply changes" logic using model diffing. 8 years ago
Matthew Chen f684482c54 Don't emit "user profile changed" notifications if nothing changed. 8 years ago
Matthew Chen 97ce1a6675 Rework user profile saves; block SAE if no local user profile key. 8 years ago
Matthew Chen f5353fc7d5 Clean up ahead of PR. 8 years ago
Matthew Chen 9da165b846 Continue conversion of app setup. 8 years ago
Matthew Chen c817aa51b3 Migrate environment to SignalMessaging. 8 years ago
Michael Kirk 0138777343 New @available syntax avoids compiler warnings
// FREEBIE
8 years ago
Michael Kirk 5e7ca89930 Proper function prototypes
// FREEBIE
8 years ago
Matthew Chen bf21d0c0ed Enable logging in SAE; rework log file management to include multiple log directories. 8 years ago
Matthew Chen e7df2511a4 Register CrossProcessNotifier. 8 years ago
Matthew Chen 62cf9b1dd5 Respond to CR. 8 years ago
Matthew Chen d17ccadea2 Use AppContext to resolve share extension FIXMEs. 8 years ago
Matthew Chen e712e8bfc4 Use AppContext to resolve share extension FIXMEs. 8 years ago
Matthew Chen 8d4e9b4565 Respond to CR. 8 years ago
Matthew Chen edaf65223a Migrate to shared data NSUserDefaults. 8 years ago