Commit Graph

3171 Commits (3b984bd393dfdacf0da9a3dad10027bb92895954)

Author SHA1 Message Date
Matthew Chen 5d422e03d1 Add support for key specs. 7 years ago
Matthew Chen c5079ed3d7 Add support for key specs. 7 years ago
Matthew Chen 2773fcb5d9 Clean up ahead of PR. 7 years ago
Matthew Chen 149199138c Clean up ahead of PR. 7 years ago
Matthew Chen a05acd0174 Add protocol context to protocol kit. 7 years ago
Matthew Chen d0f1706a49 Modify YapDatabase to read converted database. 7 years ago
Michael Kirk acc97b197b Properly force checkpoint at end of conversion
// FREEBIE
7 years ago
Matthew Chen eadb64b75a Elaborate test suite around database conversion. 7 years ago
Matthew Chen 45e44ca085 Modify YapDatabase to read converted database, part 3. 7 years ago
Matthew Chen 173da64bc4 Modify YapDatabase to read converted database, part 1. 7 years ago
Matthew Chen 3b681aba36 Successfully convert database. 7 years ago
Matthew Chen cc15092eb7 Resolve issues around database conversion. 7 years ago
Michael Kirk 11a709a621 WIP: set plaintext header length
Fix test to try to convert test db, previously it was using the
non-existent TSStorage database.

// FREEBIE
7 years ago
Michael Kirk 71dc7f55d3 Copy DB setup / keying from Yap into conversion
// FREEBIE
7 years ago
Michael Kirk 05035e40a6 Fixup tests
// FREEBIE
7 years ago
Michael Kirk c6cc497eaf Don't migrate database until verifying keychain is accessible
// FREEBIE
7 years ago
Matthew Chen 1bff0f2b0e Incomplete commit starting work on loading databases for conversion. 7 years ago
Matthew Chen 5ba5b763e4 Add tests around database conversion. 7 years ago
Matthew Chen dc73342573 Convert databases if necessary. 7 years ago
Michael Kirk 6491bb8956 Fix timer offset
// FREEBIE
7 years ago
Michael Kirk 886c0174a8 Rename color per code review
// FREEBIE
7 years ago
Michael Kirk baa312f449 Timer button with duration label
// FREEBIE
7 years ago
Michael Kirk 5c76d4c99c Stopwatch Asset instead of hourglass
// FREEBIE
7 years ago
Michael Kirk c60422e921 bump version
// FREEBIE
7 years ago
Michael Kirk 3a5fa63cd6 Fix confirmation preview
// FREEBIE
7 years ago
Michael Kirk f41dfa509c Re-aquire first responder when necessary.
// FREEBIE
7 years ago
Michael Kirk 3ca5ec2726 Ensure media-library permissions when accessing media library
// FREEBIE
7 years ago
Michael Kirk 5dde17d939 Show approval/caption view in app.
ApprovalView/Captioning is shown for:
- Images/Videos from Library
- Images/Video from Camera
- Document Picker
- GIFs

Voice notes are intentionally not captionable.

Also, in main app, hide status bar when ApprovalView is presented

// FREEBIE
7 years ago
Michael Kirk 58558b36de Add clarifying comment.
// FREEBIE
7 years ago
Michael Kirk 94d58b88b8 Play video inline in approval view
Previously we launched the MPMoviePlayerController

// FREEBIE
7 years ago
Michael Kirk 0c6a42003f clang-format after RI
// FREEBIE
7 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.
7 years ago
Matthew Chen 0d5b5bc44c Respond to CR. 7 years ago
Matthew Chen 3de9a4ea55 Add debug UI actions around clearing and snapshotting session state. 7 years ago
Matthew Chen 05b034e925 Clear out NSUserDefaults during backup restore. 7 years ago
Matthew Chen 67197ddf15 Rename any existing files and directories in restored directories. 7 years ago
Michael Kirk 56112e79be bump build
// FREEBIE
7 years ago
Matthew Chen 2b528ad894 Don't use mainApplicationState in business logic. 7 years ago
Matthew Chen d81d85c386 Respond to CR. 7 years ago
Matthew Chen 17907dca10 Clean up ahead of PR. 7 years ago
Matthew Chen 15b8e58324 Retain changes from session database branch. 7 years ago
Michael Kirk a4cadfecfa bump build
// FREEBIE
7 years ago
Michael Kirk 764b815356 bump build
// FREEBIE
7 years ago
Michael Kirk 63c23b77d0 Cleanup presentation view, feels less blurry
// FREEBIE
7 years ago
Michael Kirk 1ef824029e Fix distorted images
// FREEBIE
7 years ago
Michael Kirk 3582ab42db Fix media detail presentation
- video view now scales during presentation
- no "swooping" when presenting large res images

// FREEBIE
7 years ago
Michael Kirk 7c2bfdfb1f rename: imageView -> mediaView
// FREEBIE
7 years ago
Michael Kirk 8851413b35 CR: cleanup, remove debug animation time, move constant
// FREEBIE
7 years ago
Michael Kirk e140ffc423 Fullscreen presentation touchups
"zoom" presentation now accounts for zoomScale.

Fix background flicker as status bar hides
Round corners during presentation/dismiss. Smooths transition a bit.

// FREEBIE
7 years ago
Michael Kirk 74e03aad01 Fix intermittent content offset problem
Using the CollectionView's frame to determine if we're at the bottom
doesn't make sense unless the collection view is correctly layed out.

// FREEBIE
7 years ago
Matthew Chen 59933ce1d6 Fix rebase breakage. 7 years ago
Matthew Chen 5ba8445f05 Fix rebase breakage. 7 years ago
Matthew Chen df53033caf Clean up ahead of PR. 7 years ago
Matthew Chen 0422e4252f Clean up ahead of PR. 7 years ago
Matthew Chen f6296f1fe2 Clean up ahead of PR. 7 years ago
Matthew Chen 16f7317579 Complete backup restore/import. 7 years ago
Matthew Chen 272a90d269 Add import back up UI. Begin work on import backup logic. 7 years ago
Matthew Chen 857ca56ab6 Rework progress mode of export backup UI. 7 years ago
Matthew Chen 980b3d25a7 Rework "export backup" UI. 7 years ago
Matthew Chen cb4b44b8f4 Lock databases during backup export. 7 years ago
Matthew Chen b77382f99c Fix security issues in the backup process. 7 years ago
Matthew Chen 2011dae8b6 Show share UI for backups. 7 years ago
Matthew Chen ea945558c8 Show share UI for backups. 7 years ago
Matthew Chen 2789c0f12c Write backup to encrypted zip. 7 years ago
Matthew Chen 8769fb07cf Write backup to encrypted zip. 7 years ago
Matthew Chen 9e89502fdb Let users send to non-contacts, non-threads in SAE. 7 years ago
Matthew Chen bf3f5dd141 Respond to CR. 7 years ago
Matthew Chen 1839b10550 Retain changes from session database branch. 7 years ago
Matthew Chen e77c3e6717 Retain changes from session database branch. 7 years ago
Matthew Chen 7be8f00837 Bump build to 2.19.4.1.
// FREEBIE
7 years ago
Michael Kirk 74019b2ae4 Fix keyboard animation glitch after sending
// FREEBIE
7 years ago
Matthew Chen e11ac51e31 Bump version to 2.19.4. 7 years ago
Michael Kirk 1ec409ad2b CR: re-enable default keyboard toggle
// FREEBIE
7 years ago
Michael Kirk c91658119d CR: double tap zoom centers on tap location
// FREEBIE
7 years ago
Michael Kirk 8d2934d86e CR: remove unnecessary code, comments
// FREEBIE
7 years ago
Michael Kirk 412fe2735e Rename FullImageViewController -> MediaDetailViewController
// FREEBIE
7 years ago
Michael Kirk 8454e512d8 Use FullSreen media VC for message details
// FREEBIE
7 years ago
Michael Kirk c7c433c59c iOS8 compatability for video player 7 years ago
Michael Kirk 86d61eee30 Custom video player layer to avoid "double present/dismiss"
// FREEBIE
7 years ago
Michael Kirk 918e3f7dfe Videos play in full-screen media view controller, use modern movie
player.

// FREEBIE
7 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
7 years ago
Matthew Chen 3a9886bb2b Send database action in debug UI. 7 years ago
sdkjfhsdkjhfsdlkjhfsdf 3a6ddd4bf8 CR: cleanup
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf 6e2d9c8141 identity change vs. share extension
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf 46930b9354 Fix crash when viewing non-attachment message details.
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf b87079d4b4 Sharing attachment shows progress / retry dialog
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf 38d94952f7 Shadow for Send button, clean up color accessors
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf 513e33b0fd Cleanup before code review
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf cf091758a5 Fix oversized text messages
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf 82aeee301d can delete text messages again
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf f5b9ae97ef fix insets for incoming vs outgoin
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf eeaea5fa01 better match for corner radius
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf 0ea3a36559 make sure captioned attachment doesn't grow too large
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf 2c20cb9e7b make sure mediaview isn't too tall in detail view
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf 411de65b40 TODO: Show caption in details
TODO:
- [ ] layout is shite

// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf 0e9c9a9bb3 Separate gestures for text/vs media
// FREEBIE
7 years ago
sdkjfhsdkjhfsdlkjhfsdf 92477c78b7 cleanup before PR 7 years ago
Michael Kirk bce18637f0 render attachments with captions
// FREEBIE
7 years ago
Michael Kirk 3176cb5a62 text sizing correctly 7 years ago
Michael Kirk f8866c4e0b Fix some constraints, get other attachment types looking good
TODO
- [ ] message bubble sizes are not correct. Not always wide enough to
      fit their content.

// FREEBIE
7 years ago
Michael Kirk 76ca52f33c caption bubble properly sized, but all attachments make space now 7 years ago
Michael Kirk 3eb3c268a9 Towards a caption in message
TODO

- [ ] adjust height properly
- [ ] all media types
- [ ] include caption in message details
- [ ] gestures working on both independently
- [ ] perf benchmark

// FREEBIE
7 years ago
Michael Kirk e20f44024c WIP: Support sending attachment captions
Looks fine on other clients, but locally we don't display the caption.

// FREEBIE
7 years ago
Michael Kirk a5c5dd3f96 WIP, extract subclass 7 years ago
Michael Kirk 57a5e62db8 WIP - attachment caption 7 years ago
Matthew Chen 6b0e3508a5 Respond to CR. 7 years ago
Matthew Chen fe67cd924c Rework database view registration. 7 years ago
Matthew Chen 9258b0883e Clean up TSStorageManager usage. 7 years ago
Matthew Chen 85686d3144 Continue TSStorageManager refactor. 7 years ago
Matthew Chen 9a990b58e8 Respond to CR. 7 years ago
Matthew Chen 5dcf4b3bbc Clean up ahead of PR. 7 years ago
Matthew Chen 137fe6fb8b Pull out OWSStorage base class for TSStorageManager. 7 years ago
Matthew Chen a29c4ce5d6 Pull out OWSStorage base class for TSStorageManager. 7 years ago
Matthew Chen f9ce34f553 Improve background task logic. 7 years ago
Michael Kirk 157bf00410 Merge branch 'hotfix/2.19.3' 7 years ago
Michael Kirk ced4e3b78c Bump build to 2.19.3.3.
// FREEBIE
7 years ago
Michael Kirk d5762470b2 Bump build to 2.19.3.2.
// FREEBIE
7 years ago
Michael Kirk 1955f3664b CR: clarify names, comments, asserts
// FREEBIE
7 years ago
Michael Kirk 60eac4e0bf notify only when SignalAccounts actually change
// FREEBIE
7 years ago
Michael Kirk 27c99cf4d2 sort SignalAccounts loaded from cache 7 years ago
Michael Kirk e78edcde87 Only clear cache when user pulls-to-refresh
// FREEBIE
7 years ago
Michael Kirk 49196f8013 Spin activity indicator until contacts are fetched
// FREEBIE
7 years ago
Michael Kirk f4e471e0db SignalAccount cache perf improvments
- only persist models that have changed
- remove duplicate contact SignalAccounts
- ensure serial execution of buildAccounts
- only buildSignalAccounts when intersection succeeds

// FREEBIE
7 years ago
Matthew Chen 3643414da1 Respond to CR. 7 years ago
Matthew Chen e45d63e862 Clean up ahead of PR. 7 years ago
Matthew Chen 0c9d9ba679 Fix issues around cross process db changes. 7 years ago
Matthew Chen 0be63d2939 Add "send to last thread" option in debug logs. 7 years ago
Matthew Chen bc7f4623cc Update YapDatabase. 7 years ago
Michael Kirk 4f06518539 Merge tag '2.19.3.1' 7 years ago
Michael Kirk f182450090 bump build
// FREEBIE
7 years ago
Michael Kirk 1f8042685d Show loading cell when contacts are still loading.
// FREEBIE
7 years ago
Michael Kirk c07d7777cb Reinstate notification when SignalAccounts change
// FREEBIE
7 years ago
Michael Kirk 3affb07a11 post-merge formatting fixup
// FREEBIE
7 years ago
Michael Kirk 16448e2a0b Merge tag '2.19.3.0' 7 years ago
Michael Kirk 6f7cae691c Log counts to determine when SignalAccount cache goes missing
// FREEBIE
7 years ago
Michael Kirk 64e90d29fd CR: extract method, more asserts and annotations
// FREEBIE
7 years ago
Michael Kirk 42dc872c9a use dedicated read connection to pre-populate cache
// FREEBIE
7 years ago
Michael Kirk 336c92ddab remove cached display name machinery, cleanup
// FREEBIE
7 years ago
Michael Kirk 7ea4b85a2a Persist signal accounts (and their embedded Contact)
// FREEBIE
7 years ago
Michael Kirk a0f44f75e1 Bump build to 2.20.0.3.
// FREEBIE
7 years ago
Michael Kirk 2b038dfd36 sync translations
// FREEBIE
7 years ago
Michael Kirk 8996741277 DocumentPicker converts to mp4 when necessary
// FREEBIE
7 years ago
Michael Kirk 031e40d090 Use SignalAttachment logic in conversation view too
// FREEBIE
7 years ago
Michael Kirk d3e7c99a63 Attachment approval: cancel/confirm to top/bottom toolbars
- avoid double-submit by disabling after hitting send.
- Animate SAE dismissal as modal
  Requires hiding the load view
- attachment is centered in screen
- add gradient to ensure controls are visible
- Fix clamp constraints - I think this was a typo
  Otherwise we couldn't show an image which was 1" wide by 2" tall
- set max zoom, hide scroll indicators
- use media view
- slower panning feels right
- white send button
- can share GIF, static, and sort of video...
- Play button for attachment approval
  - move to image assets so we can use it in SAE
  - slightly larger button for full-screen approval view
  - don't launch redundant fullscreen UI for images when in approval view
- fix scrollOffset in AttachmentApproval
- consolidate view initialization logic in loadView and fix white background
- CR: more legible arithmetic

// FREEBIE
7 years ago
Matthew Chen 429312523f Simplify OWSUserProfile's "apply changes" logic using model diffing. 7 years ago
Matthew Chen f684482c54 Don't emit "user profile changed" notifications if nothing changed. 7 years ago
Matthew Chen 74efcb9041 Rework thread safety in profile manager. 7 years ago
Matthew Chen 911c4d380b Rework thread safety in profile manager. 7 years ago
Matthew Chen 80ae5e0fcf Respond to CR. 7 years ago
Matthew Chen 11b4848530 Respond to CR. 7 years ago
Matthew Chen 84061cca9f Change image resizing/quality behavior, preferring smaller images in the common case. 7 years ago
Matthew Chen 125aabb0a3 Change image resizing/quality behavior, preferring smaller images in the common case. 7 years ago
Michael Kirk d9cca77e23 update header references
// FREEBIE
7 years ago
Michael Kirk b014c236b8 bump build number 7 years ago
Michael Kirk f7dfe23c66 sync translations 7 years ago
Michael Kirk 1c74d8f912 CR: remove reset of BundleDocumentTypes 7 years ago
Michael Kirk 3ecf0a7537 Cancelling dismisses share extension, remove "import with signal"
Usinig the new ShareViewDelegate to dismiss the share extension, might
have broken the "import with signal" functionality. But because we
want to remove it anyway, I've done that now, rather than fix it up.

// FREEBIE
7 years ago
Matthew Chen f7bcf1d04d Fix tests. 7 years ago
Matthew Chen b12f192c6f Respond to CR. 7 years ago
Matthew Chen 7a1e47cd26 Add asserts around Swift singletons. 7 years ago
Matthew Chen 8312614cf7 Respond to CR. 7 years ago
Matthew Chen 99f0b9d3e8 Fix issues around statics. 7 years ago
Michael Kirk 0429836ff9 CR: rename keyWindow -> keyReferenceView, split long line
// FREEBIE
7 years ago
Michael Kirk eca19e5874 Reconcile MediaMessageView zoom behavior with AppExtension
Previously it was predicated on UIApplication.shared

// FREEBIE
7 years ago
Michael Kirk 3eceb86371 Show alert if we fail to build the attachment
// FREEBIE
7 years ago
Michael Kirk 89b9887f1d Make DeviceSleepManager extension compatible
// FREEBIE
7 years ago
Michael Kirk c52192295b fixup rebase. move jobs to proper dir 7 years ago
Michael Kirk 56fe9d057d Attachment Approval
// FREEBIE
7 years ago
Michael Kirk a58f1f385c Share a photo from photos app
Shows the conversation picker, and sends the attachment to that
conversation.

There's still a lot TODO

-[ ] resolve JSQ dependency
-[ ] properly wait for app to load
-[ ] dismiss share extension after send is complete
-[ ] support non jpeg file types
-[ ] Fix device sleep manager

// FREEBIE
7 years ago
Matthew Chen 848f055da1 Add SAE error views. 7 years ago
Matthew Chen 94b5dfb1b5 Localize the debug log UI. 7 years ago
Matthew Chen a617724da7 Add "send to self" option to debug logs. 7 years ago
Matthew Chen 6e545c57c3 Bump build to 2.20.0.1.
// FREEBIE
7 years ago
Matthew Chen 310cf1330d Continue conversion of app setup. 7 years ago
Matthew Chen 53f51bcd0b Clean up ahead of PR. 7 years ago
Matthew Chen 69e0bcd308 Fix tests. 7 years ago
Matthew Chen 9e44a73068 Fix tests vs. SAE. 7 years ago
Matthew Chen e7bd33df45 Fix tests broken by SAE. 7 years ago
Matthew Chen 8d014f057e Respond to CR. 7 years ago
Matthew Chen f5353fc7d5 Clean up ahead of PR. 7 years ago
Matthew Chen 150f417a5e Clean up ahead of PR. 7 years ago
Matthew Chen 9da165b846 Continue conversion of app setup. 7 years ago
Matthew Chen ce899edf10 Respond to CR. 7 years ago
Matthew Chen 2eba371656 Clean up ahead of PR. 7 years ago
Matthew Chen b4e8df79da Migrate environment to SignalMessaging. 7 years ago
Matthew Chen a16058e477 Migrate environment to SignalMessaging. 7 years ago
Matthew Chen 6d87df88aa Migrate environment to SignalMessaging. 7 years ago
Matthew Chen c817aa51b3 Migrate environment to SignalMessaging. 7 years ago
Michael Kirk e3b0333b97 CR: Separate class files
// FREEBIE
7 years ago
Michael Kirk 27ddf4a352 Cleanup before PR 7 years ago
Michael Kirk cd440b839f Consolidate search logic
// FREEBIE
7 years ago
Michael Kirk 766e579961 Share picker searches by profile name
Consolidate some of the share logic

// FREEBIE
7 years ago
Michael Kirk 3ed52b6d5a Fix profile label for share context
// FREEBIE
7 years ago
Michael Kirk 286463bb22 Thread picker adds sections for threads vs other contacts 7 years ago
Michael Kirk 71bafcc8f0 Search SignalAccounts by profile name
...and fixup some tests
7 years ago
Michael Kirk 2af818b3ba Make SignalMessaging AppExtension safe
// FREEBIE
7 years ago
Michael Kirk fcb17585b0 fix compiler warnings
// FREEBIE
7 years ago
Michael Kirk 5e7ca89930 Proper function prototypes
// FREEBIE
7 years ago
Matthew Chen bf21d0c0ed Enable logging in SAE; rework log file management to include multiple log directories. 8 years ago
Matthew Chen 8cc33b3de1 Refine loading view of share extension. 8 years ago