Commit Graph

10 Commits

Author SHA1 Message Date
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
Matthew Chen
9176ce6309 Add SignalUI framework target. 2021-10-19 09:39:54 -03:00
Michelle Linington
744c527233 Fix tests 2021-08-26 22:47:07 -07:00
Matthew Chen
69d89a0f7f Respond to CR. 2021-08-09 21:29:58 -03:00
Matthew Chen
8e076223aa Respond to CR. 2021-08-09 21:29:58 -03:00
Matthew Chen
e9f8f8486f Fix broken and failing tests. 2021-06-07 11:41:52 -04:00
Matthew Chen
010b135ab0 Add CVBodyTextLabel. 2021-06-02 20:42:55 -04:00
Nora Trapp
6f096e85db Fix text measurement bug 2020-12-23 10:49:48 -08:00
Nora Trapp
53c56d3ce6 Fix text measurement 2020-12-22 12:27:07 -08:00
Matthew Chen
111338b59d Rewrite conversation view. 2020-12-10 12:44:13 -03:00