diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-06 19:41:02 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-07-09 15:55:18 -0400 |
commit | dda5964a5f334655826f36023025f90cb86364c8 (patch) | |
tree | 2826557821ec462093aeb6bbc04abd8ef113da59 /src | |
parent | 8811dbc4cbcc338169e1fa9a9181b7026d7cdfbc (diff) |
Add comments
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/profile/CaptionScreen.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
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<CaptionScreenProps> = ({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) { |