diff options
author | Dan Elkouby | 2020-10-31 16:20:20 +0200 |
---|---|---|
committer | Dan Elkouby | 2020-10-31 17:11:36 +0200 |
commit | 067d7c3d006581f5a544151f8cb2a5276da9a17a (patch) | |
tree | 7d7e67848d5b71858a88cbb5c247f9efe0514ba8 /always_pin_without_notify.patch | |
parent | dc236478a21b87198281fb5fef123f0803ef5dfc (diff) | |
download | aur-067d7c3d006581f5a544151f8cb2a5276da9a17a.tar.gz |
Update to 2.4.5
Diffstat (limited to 'always_pin_without_notify.patch')
-rw-r--r-- | always_pin_without_notify.patch | 18 |
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(); |