Skip to content

fix(chat): show messages of a single emoji larger again - #7063

Merged
AndyScherzinger merged 1 commit into
masterfrom
fix/single-emoji-size
Nov 19, 2026
Merged

AndyScherzinger merged 1 commit into
masterfrom
fix/single-emoji-size

Conversation

@AndyScherzinger

@AndyScherzinger AndyScherzinger commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Messages that consist of a single emoji are shown 2.5 times larger again, as in other messengers.

Since emoji2 1.5, EmojiCompat leaves text untouched on Android 15 and newer (API 35+) unless setUseAfterUpdatableSystemFonts(true) is set: it reports itself as loaded, but process() returns the text unchanged. TextMatchers.isMessageWithSingleEmoticonOnly has relied on it since 901fd20 (replace emojipicker), so it never found an emoji there and the larger text size in ChatMessageScaffold was 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, EmojiCompat is still used, as it works there. Turning on setUseAfterUpdatableSystemFonts instead would have replaced the system's newer emoji font with the bundled one in every emoji view on Android 15+.

🖼️ Screenshots

🏚️ Before 🏡 After
s2 s3

🚧 TODO

  • Single emoji, emoji with skin tone, emoji with presentation selector, flag, ZWJ sequence and keycap are detected; text with an emoji, two emoji, a digit or a letter are not (TextMatchersTest, run on SDK 35)
  • Checked on an emulator with Android 16 (API 37)

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@AndyScherzinger

Copy link
Copy Markdown
Member Author

/backport to stable-25.1.x

@AndyScherzinger AndyScherzinger added this to the 26.0.0 milestone Nov 18, 2026
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>
@github-actions

Copy link
Copy Markdown
Contributor

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit 0571d54
Version 7063
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

@github-actions

Copy link
Copy Markdown
Contributor

Codacy

Lint

TypemasterPR
Warnings1716
Errors00

SpotBugs

CategoryBaseNew
Bad practice77
Correctness88
Dodgy code4040
Internationalization33
Malicious code vulnerability33
Performance77
Security1111
Total7979

@AndyScherzinger
AndyScherzinger merged commit 4d06740 into master Nov 19, 2026
19 of 20 checks passed
@AndyScherzinger
AndyScherzinger deleted the fix/single-emoji-size branch November 19, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants