diff options
Diffstat (limited to 'always_pin_without_notify.patch')
-rw-r--r-- | always_pin_without_notify.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/always_pin_without_notify.patch b/always_pin_without_notify.patch new file mode 100644 index 000000000000..d99abd1795c2 --- /dev/null +++ b/always_pin_without_notify.patch @@ -0,0 +1,15 @@ +Description: Deselects the "Notify all members" checkbox by default + +diff --git a/Telegram/SourceFiles/boxes/confirm_box.cpp b/Telegram/SourceFiles/boxes/confirm_box.cpp +index c80aea98b..8ae53cddc 100644 +--- a/Telegram/SourceFiles/boxes/confirm_box.cpp ++++ b/Telegram/SourceFiles/boxes/confirm_box.cpp +@@ -401,7 +401,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(); |