2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 08:35:21 +00:00

Fix unread badge styles on palette changes.

This commit is contained in:
John Preston
2021-04-19 11:14:52 +04:00
parent c242a61e8c
commit 25470cde3c
2 changed files with 17 additions and 19 deletions

View File

@@ -216,12 +216,6 @@ InnerWidget::InnerWidget(
refresh();
}, lifetime());
subscribe(Window::Theme::Background(), [=](const Window::Theme::BackgroundUpdate &data) {
if (data.paletteChanged()) {
Layout::clearUnreadBadgesCache();
}
});
session().changes().historyUpdates(
Data::HistoryUpdate::Flag::IsPinned
| Data::HistoryUpdate::Flag::ChatOccupied