Do not notify when pinning by default

Fixes #93.
This commit is contained in:
Eric Kotato 2020-07-30 12:10:09 +03:00
parent a41f6540f1
commit 22bce76f1d

View file

@ -444,7 +444,7 @@ void PinMessageBox::prepare() {
addButton(tr::lng_cancel(), [this] { closeBox(); });
if (_peer->isChat() || _peer->isMegagroup()) {
_notify.create(this, tr::lng_pinned_notify(tr::now), true, st::defaultBoxCheckbox);
_notify.create(this, tr::lng_pinned_notify(tr::now), false, st::defaultBoxCheckbox);
}
auto height = st::boxPadding.top() + _text->height() + st::boxPadding.bottom();