2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 15:45:12 +00:00

Hide toggle silent send in channels on msg edit.

This commit is contained in:
John Preston
2022-09-19 18:49:46 +04:00
parent e3d79d46f7
commit a7c29991db

View File

@@ -2776,7 +2776,7 @@ void HistoryWidget::updateControlsVisibility() {
_botMenuButton->show(); _botMenuButton->show();
} }
if (_silent) { if (_silent) {
_silent->show(); _silent->setVisible(!_editMsgId);
} }
if (_scheduled) { if (_scheduled) {
_scheduled->show(); _scheduled->show();
@@ -4836,7 +4836,7 @@ void HistoryWidget::updateFieldSize() {
if (_sendAs) fieldWidth -= _sendAs->width(); if (_sendAs) fieldWidth -= _sendAs->width();
if (kbShowShown) fieldWidth -= _botKeyboardShow->width(); if (kbShowShown) fieldWidth -= _botKeyboardShow->width();
if (_cmdStartShown) fieldWidth -= _botCommandStart->width(); if (_cmdStartShown) fieldWidth -= _botCommandStart->width();
if (_silent) fieldWidth -= _silent->width(); if (_silent && !_silent->isHidden()) fieldWidth -= _silent->width();
if (_scheduled) fieldWidth -= _scheduled->width(); if (_scheduled) fieldWidth -= _scheduled->width();
if (_ttlInfo) fieldWidth -= _ttlInfo->width(); if (_ttlInfo) fieldWidth -= _ttlInfo->width();