mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Don't pin for other by default.
This commit is contained in:
@@ -474,23 +474,23 @@ void PinMessageBox::prepare() {
|
|||||||
addButton(tr::lng_pinned_pin(), [this] { pinMessage(); });
|
addButton(tr::lng_pinned_pin(), [this] { pinMessage(); });
|
||||||
addButton(tr::lng_cancel(), [this] { closeBox(); });
|
addButton(tr::lng_cancel(), [this] { closeBox(); });
|
||||||
|
|
||||||
if (!_pinningOld && (_peer->isChat() || _peer->isMegagroup())) {
|
if (_peer->isUser() && !_peer->isSelf()) {
|
||||||
_notify.create(
|
|
||||||
this,
|
|
||||||
tr::lng_pinned_notify(tr::now),
|
|
||||||
true,
|
|
||||||
st::defaultBoxCheckbox);
|
|
||||||
_checkbox = _notify;
|
|
||||||
} else if (_peer->isUser() && !_peer->isSelf()) {
|
|
||||||
_pinForPeer.create(
|
_pinForPeer.create(
|
||||||
this,
|
this,
|
||||||
tr::lng_pinned_also_for_other(
|
tr::lng_pinned_also_for_other(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_user,
|
lt_user,
|
||||||
_peer->shortName()),
|
_peer->shortName()),
|
||||||
true,
|
false,
|
||||||
st::defaultBoxCheckbox);
|
st::defaultBoxCheckbox);
|
||||||
_checkbox = _pinForPeer;
|
_checkbox = _pinForPeer;
|
||||||
|
} else if (!_pinningOld && (_peer->isChat() || _peer->isMegagroup())) {
|
||||||
|
_notify.create(
|
||||||
|
this,
|
||||||
|
tr::lng_pinned_notify(tr::now),
|
||||||
|
true,
|
||||||
|
st::defaultBoxCheckbox);
|
||||||
|
_checkbox = _notify;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto height = st::boxPadding.top() + _text->height() + st::boxPadding.bottom();
|
auto height = st::boxPadding.top() + _text->height() + st::boxPadding.bottom();
|
||||||
|
Reference in New Issue
Block a user