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

View file

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