summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-02-20 20:28:23 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-02-20 20:28:23 +0100
commit2895162971bedea1f4033ea90c9867615f405023 (patch)
tree4d83bf1cb18b96403aa7054ca5913eff5e00260f /src/timeline/TimelineModel.cpp
parentFix html messages sent as just plain text (diff)
downloadnheko-2895162971bedea1f4033ea90c9867615f405023.tar.xz
Clear user colors on theme change
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp3
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>