summarylogtreecommitdiffstats
path: root/always_pin_without_notify.patch
diff options
context:
space:
mode:
authorDan Elkouby2019-12-29 14:24:15 +0200
committerDan Elkouby2019-12-29 15:27:18 +0200
commit0964327125a8bc35fe18c2f5e8bc22cf6e57c969 (patch)
tree56c395d10ab9b027a157b41bd29e5b809399dc2e /always_pin_without_notify.patch
parent49bd5aa5790a7e0fda365ba49b030f6ea8413af2 (diff)
downloadaur-0964327125a8bc35fe18c2f5e8bc22cf6e57c969.tar.gz
Add customizations
Diffstat (limited to 'always_pin_without_notify.patch')
-rw-r--r--always_pin_without_notify.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/always_pin_without_notify.patch b/always_pin_without_notify.patch
new file mode 100644
index 000000000000..18ed7c2c7653
--- /dev/null
+++ b/always_pin_without_notify.patch
@@ -0,0 +1,16 @@
+Description: Deselects the "Notify all members" checkbox by default
+Credits: novie
+
+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();