From d14ef3dc5f9629ab0839cace1ff92028c9fba762 Mon Sep 17 00:00:00 2001 From: Vladimir Belozyorov Date: Mon, 18 Apr 2016 16:47:23 +0400 Subject: [PATCH] Fixed inverted checkbox for notify members about pinned message Signed-off-by: Vladimir Belozyorov (github: vbelozyorov) --- Telegram/SourceFiles/boxes/confirmbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/confirmbox.cpp b/Telegram/SourceFiles/boxes/confirmbox.cpp index b836cbbb70..2f350119b0 100644 --- a/Telegram/SourceFiles/boxes/confirmbox.cpp +++ b/Telegram/SourceFiles/boxes/confirmbox.cpp @@ -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));