Repository navigation
fix(chat): show messages of a single emoji larger again - #7063
Merged
Merged
Conversation
Member
Author
|
/backport to stable-25.1.x |
On Android 15 and newer, messages of a single emoji were shown in the size of any text message. Since emoji2 1.5, EmojiCompat leaves text untouched on these versions unless it is told to replace the system's emoji font, so the check for a single emoji never found one and the 2.5 times larger text size was never used. The check now asks the platform's Unicode data whether the message is one emoji, which does not depend on a loaded emoji font. Below Android 9, where these properties are not public, EmojiCompat is still used. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
AndyScherzinger
force-pushed
the
fix/single-emoji-size
branch
from
November 18, 2026 10:05
efee4f2 to
0571d54
Compare
mahibi
approved these changes
Nov 18, 2026
Contributor
📱 QA build
The QA build installs alongside a released Nextcloud app, so you can keep Downloading the file requires a GitHub account, so open this link on the |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Messages that consist of a single emoji are shown 2.5 times larger again, as in other messengers.
Since emoji2 1.5,
EmojiCompatleaves text untouched on Android 15 and newer (API 35+) unlesssetUseAfterUpdatableSystemFonts(true)is set: it reports itself as loaded, butprocess()returns the text unchanged.TextMatchers.isMessageWithSingleEmoticonOnlyhas relied on it since 901fd20 (replace emojipicker), so it never found an emoji there and the larger text size inChatMessageScaffoldwas never used.From Android 9 on, the check now asks the platform's Unicode data (ICU) whether the message is exactly one character cluster that is an emoji, which works without a loaded emoji font. Below Android 9, where these properties are not public,
EmojiCompatis still used, as it works there. Turning onsetUseAfterUpdatableSystemFontsinstead would have replaced the system's newer emoji font with the bundled one in every emoji view on Android 15+.🖼️ Screenshots
🚧 TODO
TextMatchersTest, run on SDK 35)🏁 Checklist
/backport to stable-xx.x🤖 AI (if applicable)