Commit graph

72 commits

Author SHA1 Message Date
Matthew Chen a9096209e9 Add failure methods to thumbnail service. 2018-09-06 15:30:00 -04:00
Matthew Chen 8748dc9b2e Modify new thumbnail system to include video and GIF thumbnails. 2018-09-06 15:30:00 -04:00
Matthew Chen 206432fdf0 Add failure methods to thumbnail service. 2018-09-06 15:30:00 -04:00
Matthew Chen 3437361d70 Use new thumbnails in media gallery thumbnails. 2018-09-06 15:30:00 -04:00
Matthew Chen ac4365e1c9 Add OWSThumbnailService. 2018-09-06 15:30:00 -04:00
Matthew Chen 446ceb2b9c Rename AttachmentStream methods. 2018-09-06 15:30:00 -04:00
Matthew Chen 498828f93c Rename AttachmentStream methods. 2018-09-06 15:30:00 -04:00
Michael Kirk e715bf9ea2 image sizing
Validate image sizing
2018-08-30 19:21:38 -06:00
Michael Kirk c05700fd98 Log in OWSFail
step 1: rename OWSFail->OWSFailNoProdLog
step 2: rename OWSProdLogAndFail->OWSFail
step 3: Convert OWSFailNoProdLog->OWSFail where we want logging
step 4: Rename OWSCFail->OWSCFailNoProdLog
step 5: Rename OWSProdLogAndCFail -> OWSCFail
step 6: Convert OWSCFailNoProdLog -> OWSCFail where we want logging
2018-08-09 15:30:19 -06:00
Matthew Chen 8d814a5210 Code generate Swift wrappers for protocol buffers. 2018-08-03 14:05:20 -04:00
Matthew Chen ab31e5a07f Code generate Swift wrappers for protocol buffers. 2018-08-03 14:05:20 -04:00
Matthew Chen 1607aa7f57 Image content types. 2018-06-20 17:13:31 -04:00
Matthew Chen 18a8efe1a9 Respond to CR. 2018-06-20 14:36:35 -04:00
Matthew Chen e8d0d9ecc0 Index oversize text for search. 2018-06-15 10:03:15 -04:00
Matthew Chen dd49c6225f Auto-size contact cells everywhere. 2018-06-15 10:01:16 -04:00
Michael Kirk c15fea4eca merge avatar with existing
// FREEBIE
2018-05-10 11:31:22 -04:00
Michael Kirk d3cda951ef Fix/Simplify outgoing attachment proto building
// FREEBIE
2018-05-07 17:42:08 -04:00
Michael Kirk a10ae1835e respond to code review
// FREEBIE
2018-05-07 12:51:55 -04:00
Michael Kirk 48b4791b13 Download avatar attachment stream
// FREEBIE
2018-05-07 12:08:41 -04:00
Matthew Chen 9c93099515 Fix incomplete asserts. 2018-04-13 15:01:25 -04:00
Matthew Chen c269add62f Respond to CR. 2018-04-10 15:58:08 -04:00
Matthew Chen 76995e4594 Enforce quoted reply edge cases. 2018-04-10 15:56:55 -04:00
Michael Kirk 1d4c0624be Clarify variable names
// FREEBIE
2018-04-09 12:47:56 -04:00
Michael Kirk 4399967e99 Comment cleanup, remove unnecessary includes
// FREEBIE
2018-04-09 12:47:56 -04:00
Michael Kirk 42f454b075 Generate thumbnail when quoted attachment is available locally
// FREEBIE
2018-04-09 12:47:56 -04:00
Michael Kirk 51a4298c14 WIP: Send attachment info in protobuf (no thumbnails yet)
// FREEBIE
2018-04-09 12:47:56 -04:00
Michael Kirk 0b8b3b4f16 WIP: towards avatar attachment streams
// FREEBIE
2018-04-09 12:47:56 -04:00
Matthew Chen ca4757b8d1 Clean up ahead of PR. 2018-04-05 10:57:51 -04:00
Matthew Chen 2278cdd589 Modify cells to show quoted messages. 2018-04-04 10:12:07 -04:00
Matthew Chen 4602ad9014 Respond to CR. 2018-04-02 09:39:13 -04:00
Matthew Chen 8254052bb2 Lazy restore attachments. 2018-04-02 09:28:12 -04:00
Matthew Chen 1dced463cb Lazy restore attachments. 2018-04-02 09:28:12 -04:00
Matthew Chen b2ac8f10e2 Lazy restore attachments. 2018-04-02 09:28:12 -04:00
Matthew Chen 61dc2c0249 Add local cache of backup fragment metadata. 2018-04-02 09:27:34 -04:00
Matthew Chen e88f5643f7 Add local cache of backup fragment metadata. 2018-04-02 09:27:34 -04:00
Matthew Chen d0c691bb7f Lazy attachment restores. 2018-04-02 09:27:34 -04:00
Michael Kirk 9c57a1f7e1 Don't generate thumbnail until attachment has been saved
// FREEBIE
2018-03-20 12:16:36 -04:00
Michael Kirk 2465d6df00 CR: ensure image is safe before generating thumbnail
// FREEBIE
2018-03-20 11:15:09 -04:00
Michael Kirk 32bf9d52a1 CR: Delete thumbnail with directory
// FREEBIE
2018-03-20 11:15:09 -04:00
Michael Kirk 8e9eb6d212 CR: Use a less-likely-to-collide thumbnail name for legacy attachments
If you had a legacy file foo.jpg and a file foo-thumbnail.jpg, we'd use
the foo-thumbnail.jpg as the thumbnail for foo.

This isn't a problem with modern attachments as each is in it's own
directory.

// FREEBIE
2018-03-20 11:15:09 -04:00
Michael Kirk 4aeff7ba67 Thumbnail generation
// FREEBIE
2018-03-19 14:22:03 -04:00
Michael Kirk 985af76d0b WIP: All Media view
TODO

- [ ] label video/gif
- [ ] reasonable load perf
- [ ] reasonable scroll perf
- [ ] select / delete
- [ ] cancel share action from media details returns signal style

NICE TO HAVE

- [ ] fancy in/out animation from All Media <-> tiles
- [ ] label video thumbnail with duration stamp
- [ ] Other perf?
- [ ] dbModified?
- [ ] select / send
- [ ] darken section header a shade once it's "active"

DONE

- [x] tap to refocus on new media
- [x] generate test data
- [x] section headers
- [x] equal spacing around cells

// FREEBIE

WIP WIP extract datasouce to GalleryViewController

- [x] swipe through is broken
- [x] present animation
- [x] dismiss animation

// FREEBIE
2018-03-19 14:22:03 -04:00
Matthew Chen 4746948dfe Respond to CR. 2018-03-14 10:02:44 -03:00
Matthew Chen 706006539f Improve the robustness of the migration logic. 2018-02-20 20:16:12 -05:00
Matthew Chen d91507d897 Improve the robustness of the migration logic. 2018-02-20 17:37:14 -05:00
Matthew Chen 799949e546 Refine sync messages. 2018-02-02 10:56:16 -05:00
Matthew Chen 9ac2383a2c Retain changes from session database branch. 2018-01-10 12:18:29 -05:00
Matthew Chen 245304116f Respond to CR. 2017-12-20 11:19:09 -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