Skip to content

fix(chat): prevent MessageView from stealing ImageMessage right-clicks#20889

Merged
friofry merged 1 commit into
release/2.38.xfrom
ab/issue-20789-double-context-menu
May 18, 2026
Merged

fix(chat): prevent MessageView from stealing ImageMessage right-clicks#20889
friofry merged 1 commit into
release/2.38.xfrom
ab/issue-20789-double-context-menu

Conversation

@friofry
Copy link
Copy Markdown
Contributor

@friofry friofry commented May 15, 2026

Avoid mixing MouseArea and TapHandler on overlapping items, they don't see each other's accepted and both fire. Switched the image to TapHandler so the parent message handler is properly suppressed.

menu.mp4

fixes #20789

@status-im-auto
Copy link
Copy Markdown
Member

status-im-auto commented May 15, 2026

Jenkins Builds

Click to see older builds (19)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ceb2ec8 1 2026-05-15 16:38:29 ~7 min tests/nim 📄log
✔️ ceb2ec8 1 2026-05-15 16:41:23 ~10 min android/arm64 🤖apk 📲
✔️ ceb2ec8 1 2026-05-15 16:42:00 ~11 min ios/aarch64 📱ipa 📲
✔️ ceb2ec8 1 2026-05-15 16:42:10 ~11 min macos/aarch64 🍎dmg
✔️ ceb2ec8 1 2026-05-15 16:43:16 ~12 min tests/ui 📄log
✔️ ceb2ec8 1 2026-05-15 16:47:57 ~17 min linux/x86_64 📦tgz
✔️ ceb2ec8 11271 2026-05-15 17:04:27 ~16 min tests/e2e 📊rpt
✔️ ceb2ec8 1 2026-05-15 17:05:01 ~34 min windows/x86_64 💿exe
✖️ ceb2ec8 3227 2026-05-15 17:22:36 ~17 min tests/e2e-windows 📊rpt
✔️ 230b782 2 2026-05-18 09:43:54 ~9 min tests/nim 📄log
✔️ 230b782 2 2026-05-18 09:45:21 ~10 min android/arm64 🤖apk 📲
✔️ 230b782 2 2026-05-18 09:45:34 ~10 min ios/aarch64 📱ipa 📲
✔️ 230b782 2 2026-05-18 09:46:58 ~12 min tests/ui 📄log
✔️ 230b782 2 2026-05-18 09:48:30 ~13 min macos/aarch64 🍎dmg
✔️ 230b782 2 2026-05-18 09:53:02 ~18 min linux/x86_64 📦tgz
✔️ 230b782 2 2026-05-18 10:20:04 ~45 min windows/x86_64 💿exe
✔️ 230b782 11278 2026-05-18 10:31:56 ~38 min tests/e2e 📊rpt
✔️ 230b782 3232 2026-05-18 10:38:38 ~18 min tests/e2e-windows 📊rpt
✖️ 230b782 3261 2026-05-18 11:38:15 ~1 hr 52 min tests/e2e-android 📦pkg
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ed5f44f 3 2026-05-18 11:53:07 ~11 min tests/nim 📄log
✔️ ed5f44f 3 2026-05-18 11:53:17 ~11 min android/arm64 🤖apk 📲
✔️ ed5f44f 3 2026-05-18 11:54:30 ~12 min ios/aarch64 📱ipa 📲
✔️ ed5f44f 3 2026-05-18 11:56:18 ~14 min macos/aarch64 🍎dmg
✔️ ed5f44f 3 2026-05-18 11:57:19 ~15 min tests/ui 📄log
✔️ ed5f44f 3 2026-05-18 12:00:14 ~18 min linux/x86_64 📦tgz
✔️ ed5f44f 3 2026-05-18 12:20:42 ~38 min windows/x86_64 💿exe
✖️ ed5f44f 11283 2026-05-18 12:36:07 ~35 min tests/e2e 📊rpt
✔️ ed5f44f 3239 2026-05-18 13:08:56 ~48 min tests/e2e-windows 📊rpt

@friofry friofry force-pushed the ab/issue-20789-double-context-menu branch from ceb2ec8 to 230b782 Compare May 18, 2026 09:34
Copy link
Copy Markdown
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't work on mobile, no image context menu at all

@friofry friofry force-pushed the ab/issue-20789-double-context-menu branch from 230b782 to ed5f44f Compare May 18, 2026 11:41
@friofry
Copy link
Copy Markdown
Contributor Author

friofry commented May 18, 2026

Doesn't work on mobile, no image context menu at all

Combined 2 taphandlers into one:

android-long-press.mp4

@friofry friofry requested a review from caybro May 18, 2026 11:42
Copy link
Copy Markdown
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine now 👍

Tested on Linux + Android; with mouse, keyboard, touchpad, and touchscreen

@friofry friofry merged commit 1a58f63 into release/2.38.x May 18, 2026
11 of 12 checks passed
@friofry friofry deleted the ab/issue-20789-double-context-menu branch May 18, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants