Signal-iOS/Signal/test
Jordan Rose 1689aec8c6 Don't linkify a truncated URL until the user expands the message body
This is implemented by seeing if a data-detected item is at the very
end of a truncated string, in which case it isn't trusted to be
complete. This applies not only to URLs, but to other data-detected
items as well like emails and addresses. It's also specific to
truncated text since a user could very well type an ellipsis in their
actual message, and *that* shouldn't prevent linkification.

It's possible that an item at the very end of a truncated string *is*
complete (i.e. the truncation point was just *after* the URL), but we
can't be sure without comparing to the full text or storing additional
information, and that's trickier for a number of reasons. The user can
still expand the message and get the linkification in this case.
2022-05-06 10:56:45 -07:00
..
Assets Preserve orientation when stripping image metadata 2021-02-11 10:10:16 -08:00
attachments Simplify AFNetworking usage. 2021-10-15 10:50:37 -03:00
contact Add cachedContactNames(for:, transaction:) 2022-03-17 12:52:45 -07:00
Groups Convert to new Promise library 2021-09-03 11:41:34 -07:00
mocks Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
Models Store the local PNI alongside the local ACI and phone number 2022-03-14 12:59:44 -07:00
Payments Prefer "blocklist" 2022-04-29 18:34:19 -05:00
PerformanceTests Avoid deserializing envelope data more than necessary 2022-04-11 15:55:39 -07:00
profiles Check if a user is stories capable when sending group replies 2022-03-31 00:37:56 -07:00
SSKTests SSK: Add UUID parsing to ParamParser 2022-03-14 12:59:44 -07:00
subscriptions More project cleanup 2022-04-20 16:26:54 -07:00
Supporting Files iOS 9 Support 2015-10-31 04:45:55 +01:00
util Fix duplicate import 2022-04-29 13:02:19 -05:00
ViewControllers Don't linkify a truncated URL until the user expands the message body 2022-05-06 10:56:45 -07:00
views/ImageEditor Add SignalUI framework target. 2021-10-19 09:39:54 -03:00
PhoneNumberValidatorTest.swift Fix typos 2022-03-18 11:31:06 -07:00
SignalBaseTest.h Revert header import fix. 2021-07-20 16:43:17 -07:00
SignalBaseTest.m Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
SignalBaseTest+Swift.swift Rework dependency access. 2021-03-25 09:24:27 -03:00
SignalTests-Bridging-Header.h Respond to CR. 2021-10-21 09:21:31 -03:00
TestUtil.h Rework creation of singletons. 2018-09-19 15:11:26 -04:00