Signal-iOS/SignalServiceKit
Igor Solomennikov f7b0c4a339
"Attach Link" UX improvements.
* Fix faulty logic in validation of a URL parsed from string.

`OWSLinkPreview.isPermittedLinkPreviewUrl(parsedFrom:)` has logic to extract
hostname from a string that matches a detected URL. The logic was assuming that
every string begins with a scheme prefix (eg "http://"). That assumption isn't
always correct because NSDataDetector uses HTTP scheme when scheme prefix is not
present (eg "google.com" would result in "http://google.com" being detected).

* Two improvements to "attach link" UX.

• any valid HTTPS url can be attached to a text story, even if the link wouldn't
  actually work.
• show progress indicator while fetching a link preview.

* Add "https://" to address in "attach link preview" UI if necessary.
2022-10-18 18:20:40 -07:00
..
Experience Upgrades Auto-fix licese header violations in precommit script 2022-10-17 21:08:59 -07:00
protobuf Remove CDSH 2022-10-18 16:08:33 -07:00
Resources Add lastReadTimestamp to StoryContextAssociatedData 2022-10-18 11:18:06 -07:00
src "Attach Link" UX improvements. 2022-10-18 18:20:40 -07:00
tests Use read state for the stories tab bar badge 2022-10-18 16:22:50 -07:00
.clang-format Update clang-format with AllowShortEnumsOnASingleLine: false 2022-03-14 11:20:20 -07:00
.gitignore
.travis.yml
SignalServiceKit-Prefix.pch Change license to AGPL 2022-10-13 08:25:37 -05:00
SignalServiceKit.h Change license to AGPL 2022-10-13 08:25:37 -05:00