From 1be064e2dc2bdc4065ce56ef58ec3672344e77eb Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 26 Oct 2020 12:13:28 +0300 Subject: [PATCH] Don't pin for other by default. --- Telegram/SourceFiles/boxes/confirm_box.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Telegram/SourceFiles/boxes/confirm_box.cpp b/Telegram/SourceFiles/boxes/confirm_box.cpp index d7c715eb8..0788195b0 100644 --- a/Telegram/SourceFiles/boxes/confirm_box.cpp +++ b/Telegram/SourceFiles/boxes/confirm_box.cpp @@ -474,23 +474,23 @@ void PinMessageBox::prepare() { addButton(tr::lng_pinned_pin(), [this] { pinMessage(); }); addButton(tr::lng_cancel(), [this] { closeBox(); }); - if (!_pinningOld && (_peer->isChat() || _peer->isMegagroup())) { - _notify.create( - this, - tr::lng_pinned_notify(tr::now), - true, - st::defaultBoxCheckbox); - _checkbox = _notify; - } else if (_peer->isUser() && !_peer->isSelf()) { + if (_peer->isUser() && !_peer->isSelf()) { _pinForPeer.create( this, tr::lng_pinned_also_for_other( tr::now, lt_user, _peer->shortName()), - true, + false, st::defaultBoxCheckbox); _checkbox = _pinForPeer; + } else if (!_pinningOld && (_peer->isChat() || _peer->isMegagroup())) { + _notify.create( + this, + tr::lng_pinned_notify(tr::now), + true, + st::defaultBoxCheckbox); + _checkbox = _notify; } auto height = st::boxPadding.top() + _text->height() + st::boxPadding.bottom();