mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
c6fe9786a9
Deciding whether a text message is emoji only compares the formatted body to the plain one and runs a grapheme scan over the whole message. Nothing was remembered, so both ran again on every recomposition of every visible message. Remember the decision against the body and the formatted body. The preview branch moves into the same computation, so the composable wrapper around containsOnlyEmojis, which had a single caller and existed only to read LocalInspectionMode, is no longer needed.