summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-11 23:50:45 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-11 23:50:45 +0530
commitf044e2d2a11150d026d5a523b518027154602d3a (patch)
tree473b85ac1f0c3c749228e34430bacdaf36a14af1 /src/timeline/TimelineModel.cpp
parentshifted room avatar changing (diff)
downloadnheko-f044e2d2a11150d026d5a523b518027154602d3a.tar.xz
fix avatar update on timeline sync
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index 968ec3c7..29808fdd 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -808,6 +808,14 @@ TimelineModel::openUserProfile(QString userid, bool global)
 }
 
 void
+TimelineModel::openRoomSettings(QString roomid)
+{
+        RoomSettings *settings = new RoomSettings(roomid, this);
+        connect(this, &TimelineModel::roomAvatarUrlChanged, settings, &RoomSettings::avatarChanged);
+        openRoomSettingsDialog(settings);
+}
+
+void
 TimelineModel::replyAction(QString id)
 {
         setReply(id);