fix: swiping to reply to a channel message on a phone also opens the sidebar (#32178)

On a phone, swiping right on a channel message to reply to it also opened the sidebar, which slid over the channel and covered the message. A swipe on a message now only starts the reply. On messages that cannot be replied to, for example in a read-only channel, the same swipe still opens the sidebar.

Fixes #32016
This commit is contained in:
Classic298 2026-10-10 17:47:24 +02:00 • committed by GitHub
parent f7727e24b9
commit 92f283bba5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,6 +169,7 @@
{#if message}
<div
class="swipe-reply-wrapper relative"
data-sidebar-no-gesture={disabled || edit ? undefined : ''}
on:touchstart={handleTouchStart}
on:touchmove={handleTouchMove}
on:touchend={handleTouchEnd}