2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Merge pull request #1919 from VBelozyorov/issues/inverted-notify-checkbox

Fixed inverted checkbox for notify members about pinned message
This commit is contained in:
John Preston
2016-04-18 22:15:12 +03:00

View File

@@ -403,7 +403,7 @@ void PinMessageBox::onPin() {
if (_requestId) return;
MTPchannels_UpdatePinnedMessage::Flags flags = 0;
if (_notify.checked()) {
if (!_notify.checked()) {
flags |= MTPchannels_UpdatePinnedMessage::Flag::f_silent;
}
_requestId = MTP::send(MTPchannels_UpdatePinnedMessage(MTP_flags(flags), _channel->inputChannel, MTP_int(_msgId)), rpcDone(&PinMessageBox::pinDone), rpcFail(&PinMessageBox::pinFail));