Commit graph

64 commits

Author SHA1 Message Date
Matthew Chen fc4b0a359a Clean up ahead of PR. 2018-01-25 13:24:55 -05:00
Matthew Chen 3f74c488b2 Clean up ahead of PR. 2018-01-25 13:24:22 -05:00
Matthew Chen 03877867f4 Clean up ahead of PR. 2018-01-25 13:24:22 -05:00
Matthew Chen c0d4c3f1da Fix handling of URL shares. 2018-01-25 13:23:59 -05:00
Matthew Chen 112e369435 Fix handling of URL shares. 2018-01-25 13:23:59 -05:00
Matthew Chen 6a80db7844 Enable support for sharing urls in SAE. 2018-01-25 13:23:00 -05:00
Matthew Chen da0b7df1b5 Respond to CR. 2018-01-25 13:18:38 -05:00
Matthew Chen 482ad08640 Handle unregistration in SAE. 2018-01-25 13:18:38 -05:00
sdkjfhsdkjhfsdlkjhfsdf 14723f3e7f Fix profile avatar flicker
- We were clobbering our saved avatar filepath.
- Our "should notify" check was too aggressive.
- Only fetch profiles when entering a conversation.
- Only fetch profiles in main app

Also added (a little) debounce time to debug profile fetching.

// FREEBIE
2017-12-21 19:34:45 -06:00
Matthew Chen fe67cd924c Rework database view registration. 2017-12-19 11:42:06 -05:00
Matthew Chen 0c9d9ba679 Fix issues around cross process db changes. 2017-12-15 11:11:57 -05:00
Michael Kirk 3affb07a11 post-merge formatting fixup
// FREEBIE
2017-12-14 11:43:27 -05:00
Michael Kirk 16448e2a0b Merge tag '2.19.3.0' 2017-12-14 11:42:57 -05:00
Michael Kirk f9d22545b1 Only copy imported video when necessary.
Non-mp4's will be moved as part of their conversion.

We only need to move mp4's which were auto-converted

// FREEBIE
2017-12-12 12:54:02 -05:00
Michael Kirk 849388feb7 CR: clean up loading assets once no longer needed
// FREEBIE
2017-12-12 12:53:09 -05:00
Michael Kirk 03220ffa79 CR: Faster animation from loading -> picker
// FREEBIE
2017-12-12 12:31:17 -05:00
Michael Kirk 813f4e474e Respond to CR
// FREEBIE
2017-12-12 11:09:39 -05:00
Michael Kirk 47e92dbad5 cleanup
// FREEBIE
2017-12-11 20:47:16 -05:00
Michael Kirk 56f1bf0305 cleanup 2017-12-11 19:37:49 -05:00
Michael Kirk 65f79770ac rebase fixup 2017-12-11 14:11:58 -05:00
Michael Kirk 90e9b4a4f2 WIP - send all video types 2017-12-11 14:05:55 -05:00
Michael Kirk 4ce2eb3c6c Show ProgressView for video conversion
// FREEBIE
2017-12-11 14:05:53 -05:00
Michael Kirk b1b6dcfbf0 Simplify loading delay, use loading screen as activity indicator for
video conversion

// FREEBIE
2017-12-11 14:05:05 -05:00
Michael Kirk 538b3e5fd5 Async API for video export
// FREEBIE
2017-12-11 14:04:26 -05:00
Michael Kirk 21fd7b040e Ensure sent video is mp4
// FREEBIE
2017-12-11 14:03:40 -05:00
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
2017-12-11 13:58:03 -05:00
Matthew Chen 97ce1a6675 Rework user profile saves; block SAE if no local user profile key. 2017-12-11 12:28:28 -05:00
Matthew Chen 11b4848530 Respond to CR. 2017-12-11 10:37:20 -05:00
Matthew Chen 89db8b3a44 Respond to CR. 2017-12-11 10:37:20 -05:00
Matthew Chen 125aabb0a3 Change image resizing/quality behavior, preferring smaller images in the common case. 2017-12-11 10:37:20 -05:00
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
2017-12-07 17:12:03 -05:00
Michael Kirk ed33663e6d CR: remove redundant isHidden
// FREEBIE
2017-12-07 16:48:02 -05:00
Michael Kirk cd95e1784b avoid race condition in presentation animation 2017-12-07 16:48:02 -05:00
Michael Kirk 3bb772f135 Modal conversation picker, hide loading screen when possible
The first usable screen in the conversation picker, that's the first
thing we want to show the user, and the modal presentation feels like
the right way to introduce this new context.

Long load times should be the exception, not the normal flow, so we
delay it's presentation in hopes that it will generally never be seen.

// FREEBIE
2017-12-07 16:48:01 -05:00
Matthew Chen d15d5ce3a2 Respond to CR. 2017-12-07 16:29:24 -05:00
Matthew Chen 791743a5f0 Fix order of operations in SAE setup. 2017-12-07 16:04:52 -05:00
Matthew Chen f148003fb3 Convert logTag to property. 2017-12-07 14:32:22 -05:00
Matthew Chen 8312614cf7 Respond to CR. 2017-12-07 13:53:13 -05:00
Matthew Chen 99f0b9d3e8 Fix issues around statics. 2017-12-07 12:34:02 -05:00
Michael Kirk 0429836ff9 CR: rename keyWindow -> keyReferenceView, split long line
// FREEBIE
2017-12-07 10:39:44 -05:00
Michael Kirk ca999627ef CR: replace, not push VC
// FREEBIE
2017-12-07 10:22:04 -05:00
Michael Kirk c0c71ad765 cleanup 2017-12-07 10:15:35 -05:00
Michael Kirk 4aba6e0c9f Present conversation picker when DB is ready
// FREEBIE
2017-12-07 10:15:35 -05:00
Michael Kirk eca19e5874 Reconcile MediaMessageView zoom behavior with AppExtension
Previously it was predicated on UIApplication.shared

// FREEBIE
2017-12-07 10:14:30 -05:00
Michael Kirk 3036337a5a Include filename, support sharing all other image types
// FREEBIE
2017-12-07 10:14:30 -05:00
Michael Kirk 3eceb86371 Show alert if we fail to build the attachment
// FREEBIE
2017-12-07 10:14:30 -05:00
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
2017-12-07 10:13:06 -05:00
Matthew Chen 3960b8162e Respond to CR. 2017-12-06 21:47:03 -05:00
Matthew Chen 848f055da1 Add SAE error views. 2017-12-06 21:38:53 -05:00
Matthew Chen 01dfa83bed Continue conversion of app setup. 2017-12-06 10:38:57 -05:00