Disabled swipe-to-reply for channels.

This commit is contained in:
23rd 2024-09-06 11:58:25 +03:00
parent 2116e04af5
commit 62c3374911

View file

@ -579,6 +579,9 @@ void HistoryInner::setupSharingDisallowed() {
}
void HistoryInner::setupSwipeReply() {
if (_peer && _peer->isChannel() && !_peer->isMegagroup()) {
return;
}
HistoryView::SetupSwipeHandler(this, _scroll, [=, history = _history](
HistoryView::ChatPaintGestureHorizontalData data) {
const auto changed = (_gestureHorizontal.msgBareId != data.msgBareId)