From 0c1175f9cda19a61cc256d5b93003d21b8c72e88 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 7 Oct 2020 12:09:07 +0300 Subject: [PATCH] Fix broadcast field placeholder update. --- Telegram/SourceFiles/history/history_widget.cpp | 5 +---- Telegram/SourceFiles/history/history_widget.h | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 79b2d295fa..960238c689 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -1942,6 +1942,7 @@ void HistoryWidget::updateNotifyControls() { if (!session().data().notifySilentPostsUnknown(_peer)) { if (_silent) { _silent->setChecked(session().data().notifySilentPosts(_peer)); + updateFieldPlaceholder(); } else if (hasSilentToggle()) { refreshSilentToggle(); updateControlsVisibility(); @@ -3132,10 +3133,6 @@ void HistoryWidget::toggleMuteUnmute() { session().data().updateNotifySettings(_peer, muteForSeconds); } -void HistoryWidget::onBroadcastSilentChange() { - updateFieldPlaceholder(); -} - History *HistoryWidget::history() const { return _history; } diff --git a/Telegram/SourceFiles/history/history_widget.h b/Telegram/SourceFiles/history/history_widget.h index d1e5410174..759b5a0fce 100644 --- a/Telegram/SourceFiles/history/history_widget.h +++ b/Telegram/SourceFiles/history/history_widget.h @@ -294,8 +294,6 @@ signals: public slots: void onScroll(); - void onBroadcastSilentChange(); - void activate(); void onTextChange();