Fix custom chat themes in scheduled messages.

This commit is contained in:
John Preston 2021-11-10 10:26:37 +04:00
parent dee8b1fe6f
commit b47e29b182
2 changed files with 1 additions and 2 deletions

View file

@ -2203,8 +2203,6 @@ void HistoryWidget::showHistory(
refreshTopBarActiveChat(); refreshTopBarActiveChat();
updateTopBarSelection(); updateTopBarSelection();
checkMessagesTTL(); checkMessagesTTL();
// Restore default theme.
controller()->setChatStyleTheme(controller()->defaultChatTheme());
clearFieldText(); clearFieldText();
doneShow(); doneShow();
} }

View file

@ -1391,6 +1391,7 @@ void MainWidget::ui_showPeerHistory(
if (noPeer) { if (noPeer) {
_controller->setActiveChatEntry(Dialogs::Key()); _controller->setActiveChatEntry(Dialogs::Key());
_controller->setChatStyleTheme(controller()->defaultChatTheme());
} }
if (onlyDialogs) { if (onlyDialogs) {