diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-02-20 20:28:23 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-02-20 20:28:23 +0100 |
commit | 2895162971bedea1f4033ea90c9867615f405023 (patch) | |
tree | 4d83bf1cb18b96403aa7054ca5913eff5e00260f /src/timeline | |
parent | Fix html messages sent as just plain text (diff) | |
download | nheko-2895162971bedea1f4033ea90c9867615f405023.tar.xz |
Clear user colors on theme change
Diffstat (limited to 'src/timeline')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index ed1b3075..8de6bec6 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -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> |