Signal-iOS/Signal/test/ViewControllers
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
..
ConversationViewControllerTest.swift Multi-Select Animations 2021-06-29 15:36:50 -10:00
ConversationViewTest.swift Fix tests 2021-08-19 16:54:29 -07:00
CVMessageMappingTest.swift Rewrite conversation view. 2020-12-10 12:44:13 -03:00
CVTextTest.swift Don't linkify a truncated URL until the user expands the message body 2022-05-06 10:56:45 -07:00