mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Disabled swipe-to-reply for channels.
This commit is contained in:
parent
2116e04af5
commit
62c3374911
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue