mirror of https://github.com/procxx/kepka.git
Fixed inverted checkbox for notify members about pinned message
Signed-off-by: Vladimir Belozyorov <VBelozyorov@users.noreply.github.com> (github: vbelozyorov)
This commit is contained in:
parent
957b739025
commit
d14ef3dc5f
|
@ -403,7 +403,7 @@ void PinMessageBox::onPin() {
|
||||||
if (_requestId) return;
|
if (_requestId) return;
|
||||||
|
|
||||||
MTPchannels_UpdatePinnedMessage::Flags flags = 0;
|
MTPchannels_UpdatePinnedMessage::Flags flags = 0;
|
||||||
if (_notify.checked()) {
|
if (!_notify.checked()) {
|
||||||
flags |= MTPchannels_UpdatePinnedMessage::Flag::f_silent;
|
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));
|
_requestId = MTP::send(MTPchannels_UpdatePinnedMessage(MTP_flags(flags), _channel->inputChannel, MTP_int(_msgId)), rpcDone(&PinMessageBox::pinDone), rpcFail(&PinMessageBox::pinFail));
|
||||||
|
|
Loading…
Reference in New Issue