summarylogtreecommitdiffstats
path: root/always_pin_without_notify.patch
diff options
context:
space:
mode:
authorDan Elkouby2020-10-31 16:20:20 +0200
committerDan Elkouby2020-10-31 17:11:36 +0200
commit067d7c3d006581f5a544151f8cb2a5276da9a17a (patch)
tree7d7e67848d5b71858a88cbb5c247f9efe0514ba8 /always_pin_without_notify.patch
parentdc236478a21b87198281fb5fef123f0803ef5dfc (diff)
downloadaur-067d7c3d006581f5a544151f8cb2a5276da9a17a.tar.gz
Update to 2.4.5
Diffstat (limited to 'always_pin_without_notify.patch')
-rw-r--r--always_pin_without_notify.patch18
1 files changed, 9 insertions, 9 deletions
diff --git a/always_pin_without_notify.patch b/always_pin_without_notify.patch
index 18ed7c2c7653..e94c74f4689f 100644
--- a/always_pin_without_notify.patch
+++ b/always_pin_without_notify.patch
@@ -2,15 +2,15 @@ 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
+index 0788195b0..523c31522 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);
+@@ -488,7 +488,7 @@ void PinMessageBox::prepare() {
+ _notify.create(
+ this,
+ tr::lng_pinned_notify(tr::now),
+- true,
++ false,
+ st::defaultBoxCheckbox);
+ _checkbox = _notify;
}
-
- auto height = st::boxPadding.top() + _text->height() + st::boxPadding.bottom();