From dda5964a5f334655826f36023025f90cb86364c8 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Tue, 6 Jul 2021 19:41:02 -0400 Subject: Add comments --- src/screens/profile/CaptionScreen.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index 1d2946bb..67d1fd04 100644 --- a/src/screens/profile/CaptionScreen.tsx +++ b/src/screens/profile/CaptionScreen.tsx @@ -86,6 +86,9 @@ const CaptionScreen: React.FC = ({route, navigation}) => { useEffect(() => { let listString = ''; + // Append non-truncated usernames together and no more than 21 characters total + // e.g. "@ivan.tagg" + // e.g. "@ivan.tagg @foobar . . ." for (const tag of tags) { const usernameStr = `@${tag.user.username} `; if (listString.length + usernameStr.length > 21) { -- cgit v1.2.3-70-g09d2