Clear user colors on theme change

This commit is contained in:
Nicolas Werner 2020-02-20 20:28:23 +01:00
parent fcaec0d099
commit 2895162971
1 changed files with 3 additions and 0 deletions

View File

@ -196,6 +196,9 @@ TimelineModel::TimelineModel(TimelineViewManager *manager, QString room_id, QObj
if (idx >= 0)
emit dataChanged(index(idx, 0), index(idx, 0));
});
connect(
ChatPage::instance(), &ChatPage::themeChanged, this, [this]() { userColors.clear(); });
}
QHash<int, QByteArray>