mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Disabled swipe-to-reply for channels.
This commit is contained in:
@@ -579,6 +579,9 @@ void HistoryInner::setupSharingDisallowed() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HistoryInner::setupSwipeReply() {
|
void HistoryInner::setupSwipeReply() {
|
||||||
|
if (_peer && _peer->isChannel() && !_peer->isMegagroup()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
HistoryView::SetupSwipeHandler(this, _scroll, [=, history = _history](
|
HistoryView::SetupSwipeHandler(this, _scroll, [=, history = _history](
|
||||||
HistoryView::ChatPaintGestureHorizontalData data) {
|
HistoryView::ChatPaintGestureHorizontalData data) {
|
||||||
const auto changed = (_gestureHorizontal.msgBareId != data.msgBareId)
|
const auto changed = (_gestureHorizontal.msgBareId != data.msgBareId)
|
||||||
|
Reference in New Issue
Block a user