Commit Graph

15 Commits

Author SHA1 Message Date
Matthew Chen
239fbbc8ba DRY singleton accessors. 2020-09-17 21:13:14 -03:00
Michelle Linington
a0cfcc87f0 Pull request feedback and removing unnecessary code
- Rename URL -> Url to follow convention
- Remove some duplicated/unnecessary code
- Parse the returned image Data with ImageData
2020-08-26 16:49:22 -07:00
Michelle Linington
1f9b6906df IOS-807: Fetch link preview content directly
This change updates the link preview fetch flow to fetch content
directly rather than through the proxy. This means we can remove the
allowed domain list and fetch content from most provided domains.

This almost moves HTML content parsing outside of OWSLinkPreview.
Currently we'll still only fetch the same content, but it's extensible
enough to fetch all sorts of different opengraph tags.

AFHTTPSessionManager will no longer faildebug on a request failure.
Since we're going to be firing opportunistic fetch requests as we parse
a URL, it's expected that some will fail.
2020-08-26 16:47:49 -07:00
Nora Trapp
4696a4d993 Mention sending 2020-08-04 14:08:30 -07:00
Matthew Chen
6b4f192b1b Remove usage of retainUntilComplete. 2020-05-22 09:51:12 -03:00
Matthew Chen
1ad4a5b9ae Retain all promises until complete. 2020-05-15 18:13:12 -03:00
Matthew Chen
f8b9b209ff Respond to CR. 2020-05-11 10:19:52 -03:00
Matthew Chen
b42f1968cc Fix build warnings around initializers. 2020-04-08 16:05:54 -03:00
Matthew Chen
b5c069ed95 Clean up VC initializers. 2020-04-08 09:26:25 -03:00
Nora Trapp
5eacd2eb6b Fix sticker pack view sizing after sharing 2019-12-17 10:08:37 -08:00
Matthew Chen
a48ccccdd1 Remove more usage of primary storage. 2019-08-07 17:41:11 -03:00
Michael Kirk
a837c75764 Simple send sans Yap 2019-05-28 17:31:53 -04:00
Matthew Chen
562289a55a Always send a link preview for shared sticker packs. 2019-05-14 14:37:11 -04:00
Matthew Chen
c87eb4df5c Clean up ahead of PR. 2019-05-14 13:55:50 -04:00
Matthew Chen
f03eece812 Share sticker pack flow. 2019-05-14 13:55:50 -04:00