Commit graph

2548 commits

Author SHA1 Message Date
Michael Kirk 3a5fa63cd6 Fix confirmation preview
// FREEBIE
2018-01-19 15:34:11 -05:00
Michael Kirk f41dfa509c Re-aquire first responder when necessary.
// FREEBIE
2018-01-19 15:05:50 -05:00
Michael Kirk 3ca5ec2726 Ensure media-library permissions when accessing media library
// FREEBIE
2018-01-18 13:37:11 -05:00
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
2018-01-17 18:19:48 -05:00
Michael Kirk 58558b36de Add clarifying comment.
// FREEBIE
2018-01-17 18:11:48 -05:00
Michael Kirk 94d58b88b8 Play video inline in approval view
Previously we launched the MPMoviePlayerController

// FREEBIE
2018-01-16 17:57:14 -05:00
Michael Kirk 0c6a42003f clang-format after RI
// FREEBIE
2018-01-16 15:27:53 -05:00
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.
2018-01-16 15:25:58 -05:00
Matthew Chen 0d5b5bc44c Respond to CR. 2018-01-12 16:49:51 -05:00
Matthew Chen 3de9a4ea55 Add debug UI actions around clearing and snapshotting session state. 2018-01-12 16:42:18 -05:00
Matthew Chen 05b034e925 Clear out NSUserDefaults during backup restore. 2018-01-12 16:40:57 -05:00
Matthew Chen 67197ddf15 Rename any existing files and directories in restored directories. 2018-01-12 16:40:57 -05:00
Matthew Chen 2b528ad894 Don't use mainApplicationState in business logic. 2018-01-12 14:24:35 -05:00
Matthew Chen d81d85c386 Respond to CR. 2018-01-12 10:36:09 -05:00
Matthew Chen 17907dca10 Clean up ahead of PR. 2018-01-12 10:23:54 -05:00
Matthew Chen 15b8e58324 Retain changes from session database branch. 2018-01-12 10:23:54 -05:00
Michael Kirk 63c23b77d0 Cleanup presentation view, feels less blurry
// FREEBIE
2018-01-12 00:17:06 -05:00
Michael Kirk 1ef824029e Fix distorted images
// FREEBIE
2018-01-11 23:58:11 -05:00
Michael Kirk 3582ab42db Fix media detail presentation
- video view now scales during presentation
- no "swooping" when presenting large res images

// FREEBIE
2018-01-11 23:49:21 -05:00
Michael Kirk 7c2bfdfb1f rename: imageView -> mediaView
// FREEBIE
2018-01-11 23:05:59 -05:00
Michael Kirk 8851413b35 CR: cleanup, remove debug animation time, move constant
// FREEBIE
2018-01-11 23:05:59 -05:00
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
2018-01-11 23:05:59 -05:00
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
2018-01-11 23:04:18 -05:00
Matthew Chen 59933ce1d6 Fix rebase breakage. 2018-01-11 11:15:50 -05:00
Matthew Chen 5ba8445f05 Fix rebase breakage. 2018-01-11 10:46:28 -05:00
Matthew Chen df53033caf Clean up ahead of PR. 2018-01-11 10:44:03 -05:00
Matthew Chen 0422e4252f Clean up ahead of PR. 2018-01-11 10:44:03 -05:00
Matthew Chen f6296f1fe2 Clean up ahead of PR. 2018-01-11 10:44:03 -05:00
Matthew Chen 16f7317579 Complete backup restore/import. 2018-01-11 10:44:03 -05:00
Matthew Chen 272a90d269 Add import back up UI. Begin work on import backup logic. 2018-01-11 10:42:57 -05:00
Matthew Chen 857ca56ab6 Rework progress mode of export backup UI. 2018-01-11 10:42:27 -05:00
Matthew Chen 980b3d25a7 Rework "export backup" UI. 2018-01-11 10:42:27 -05:00
Matthew Chen cb4b44b8f4 Lock databases during backup export. 2018-01-11 10:40:49 -05:00
Matthew Chen b77382f99c Fix security issues in the backup process. 2018-01-11 10:40:49 -05:00
Matthew Chen 2011dae8b6 Show share UI for backups. 2018-01-11 10:40:49 -05:00
Matthew Chen ea945558c8 Show share UI for backups. 2018-01-11 10:40:49 -05:00
Matthew Chen 2789c0f12c Write backup to encrypted zip. 2018-01-11 10:40:49 -05:00
Matthew Chen 8769fb07cf Write backup to encrypted zip. 2018-01-11 10:40:49 -05:00
Matthew Chen 9e89502fdb Let users send to non-contacts, non-threads in SAE. 2018-01-10 17:56:30 -05:00
Matthew Chen bf3f5dd141 Respond to CR. 2018-01-10 17:51:05 -05:00
Matthew Chen 1839b10550 Retain changes from session database branch. 2018-01-10 12:18:34 -05:00
Matthew Chen e77c3e6717 Retain changes from session database branch. 2018-01-10 12:18:23 -05:00
Michael Kirk 74019b2ae4 Fix keyboard animation glitch after sending
// FREEBIE
2018-01-09 12:31:41 -05:00
Michael Kirk 1ec409ad2b CR: re-enable default keyboard toggle
// FREEBIE
2018-01-08 16:29:42 -05:00
Michael Kirk c91658119d CR: double tap zoom centers on tap location
// FREEBIE
2018-01-08 15:50:18 -05:00
Michael Kirk 8d2934d86e CR: remove unnecessary code, comments
// FREEBIE
2018-01-08 15:11:35 -05:00
Michael Kirk 412fe2735e Rename FullImageViewController -> MediaDetailViewController
// FREEBIE
2018-01-08 01:10:32 -05:00
Michael Kirk 8454e512d8 Use FullSreen media VC for message details
// FREEBIE
2018-01-08 01:10:32 -05:00
Michael Kirk c7c433c59c iOS8 compatability for video player 2018-01-08 01:10:32 -05:00
Michael Kirk 86d61eee30 Custom video player layer to avoid "double present/dismiss"
// FREEBIE
2018-01-08 01:10:32 -05:00
Michael Kirk 918e3f7dfe Videos play in full-screen media view controller, use modern movie
player.

// FREEBIE
2018-01-08 01:10:32 -05:00
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
2018-01-08 01:10:31 -05:00
Matthew Chen 3a9886bb2b Send database action in debug UI. 2018-01-04 10:50:33 -05:00
sdkjfhsdkjhfsdlkjhfsdf 6e2d9c8141 identity change vs. share extension
// FREEBIE
2018-01-02 11:24:36 -06:00
sdkjfhsdkjhfsdlkjhfsdf 46930b9354 Fix crash when viewing non-attachment message details.
// FREEBIE
2017-12-22 22:41:03 -06:00
sdkjfhsdkjhfsdlkjhfsdf b87079d4b4 Sharing attachment shows progress / retry dialog
// FREEBIE
2017-12-20 20:57:17 -06:00
sdkjfhsdkjhfsdlkjhfsdf 38d94952f7 Shadow for Send button, clean up color accessors
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 513e33b0fd Cleanup before code review
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf cf091758a5 Fix oversized text messages
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 82aeee301d can delete text messages again
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf f5b9ae97ef fix insets for incoming vs outgoin
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf eeaea5fa01 better match for corner radius
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 0ea3a36559 make sure captioned attachment doesn't grow too large
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 2c20cb9e7b make sure mediaview isn't too tall in detail view
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 411de65b40 TODO: Show caption in details
TODO:
- [ ] layout is shite

// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 0e9c9a9bb3 Separate gestures for text/vs media
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 92477c78b7 cleanup before PR 2017-12-20 14:26:53 -06:00
Michael Kirk bce18637f0 render attachments with captions
// FREEBIE
2017-12-20 14:26:53 -06:00
Michael Kirk 3176cb5a62 text sizing correctly 2017-12-20 14:26:53 -06:00
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
2017-12-20 14:26:53 -06:00
Michael Kirk 76ca52f33c caption bubble properly sized, but all attachments make space now 2017-12-20 14:26:53 -06:00
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
2017-12-20 14:26:53 -06:00
Michael Kirk e20f44024c WIP: Support sending attachment captions
Looks fine on other clients, but locally we don't display the caption.

// FREEBIE
2017-12-20 14:26:53 -06:00
Michael Kirk a5c5dd3f96 WIP, extract subclass 2017-12-20 14:26:53 -06:00
Michael Kirk 57a5e62db8 WIP - attachment caption 2017-12-20 14:26:52 -06:00
Matthew Chen 6b0e3508a5 Respond to CR. 2017-12-20 11:28:07 -05:00
Matthew Chen fe67cd924c Rework database view registration. 2017-12-19 11:42:06 -05:00
Matthew Chen 9258b0883e Clean up TSStorageManager usage. 2017-12-19 11:41:31 -05:00
Matthew Chen 85686d3144 Continue TSStorageManager refactor. 2017-12-19 11:41:30 -05:00
Matthew Chen 9a990b58e8 Respond to CR. 2017-12-19 11:38:25 -05:00
Matthew Chen 5dcf4b3bbc Clean up ahead of PR. 2017-12-19 11:16:01 -05:00
Matthew Chen 137fe6fb8b Pull out OWSStorage base class for TSStorageManager. 2017-12-19 11:16:01 -05:00
Matthew Chen a29c4ce5d6 Pull out OWSStorage base class for TSStorageManager. 2017-12-19 11:16:01 -05:00
Matthew Chen f9ce34f553 Improve background task logic. 2017-12-19 11:05:17 -05:00
Michael Kirk 157bf00410 Merge branch 'hotfix/2.19.3' 2017-12-17 14:02:03 -05:00
Michael Kirk 1955f3664b CR: clarify names, comments, asserts
// FREEBIE
2017-12-16 13:21:56 -05:00
Michael Kirk 60eac4e0bf notify only when SignalAccounts actually change
// FREEBIE
2017-12-16 12:32:19 -05:00
Michael Kirk 27c99cf4d2 sort SignalAccounts loaded from cache 2017-12-16 12:26:47 -05:00
Michael Kirk e78edcde87 Only clear cache when user pulls-to-refresh
// FREEBIE
2017-12-16 12:01:19 -05:00
Michael Kirk 49196f8013 Spin activity indicator until contacts are fetched
// FREEBIE
2017-12-15 16:31:53 -05:00
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
2017-12-15 16:18:36 -05:00
Matthew Chen 3643414da1 Respond to CR. 2017-12-15 11:16:07 -05:00
Matthew Chen e45d63e862 Clean up ahead of PR. 2017-12-15 11:11:57 -05:00
Matthew Chen 0c9d9ba679 Fix issues around cross process db changes. 2017-12-15 11:11:57 -05:00
Matthew Chen 0be63d2939 Add "send to last thread" option in debug logs. 2017-12-15 11:11:04 -05:00
Matthew Chen bc7f4623cc Update YapDatabase. 2017-12-15 11:11:04 -05:00
Michael Kirk 4f06518539 Merge tag '2.19.3.1' 2017-12-14 16:21:41 -05:00
Michael Kirk 1f8042685d Show loading cell when contacts are still loading.
// FREEBIE
2017-12-14 13:53:02 -05:00
Michael Kirk c07d7777cb Reinstate notification when SignalAccounts change
// FREEBIE
2017-12-14 13:18:51 -05:00
Michael Kirk 3affb07a11 post-merge formatting fixup
// FREEBIE
2017-12-14 11:43:27 -05:00