diff --git a/Frameworks/Account/FeedProvider/Twitter/TwitterStatus.swift b/Frameworks/Account/FeedProvider/Twitter/TwitterStatus.swift index 6d054d21b..59f3dfc58 100644 --- a/Frameworks/Account/FeedProvider/Twitter/TwitterStatus.swift +++ b/Frameworks/Account/FeedProvider/Twitter/TwitterStatus.swift @@ -78,21 +78,21 @@ private extension TwitterStatus { var html = String() var prevIndex = displayStartIndex + var emojiOffset = 0 for entity in entities { - // The twitter indices are messed up by emoji with more than one scalar, we are trying to adjust for that here. - var offset = 0 + // The twitter indices are messed up by emoji with more than one scalar, we are going to adjust for that here. let emojiEndIndex = text.index(text.startIndex, offsetBy: entity.endIndex, limitedBy: text.endIndex) ?? text.endIndex - if text.startIndex < prevIndex { - let emojis = String(text[text.startIndex..