summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-03 10:24:35 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-03 10:24:35 +0300
commit33a8628059afc2799c3d3fff032baf5b5b8a592f (patch)
treeb4e0373a1c36be8b9a4fd7c81e3062b1c738d40f /src/timeline
parentAdjust CMakeLists to make dependency downloading optional (diff)
downloadnheko-33a8628059afc2799c3d3fff032baf5b5b8a592f.tar.xz
Update the room list after a redacted event has been removed
fixes #286
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/TimelineView.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeline/TimelineView.cc b/src/timeline/TimelineView.cc
index a00f4df5..d18c1cff 100644
--- a/src/timeline/TimelineView.cc
+++ b/src/timeline/TimelineView.cc
@@ -770,6 +770,10 @@ TimelineView::removeEvent(const QString &event_id)
         // Finally remove the event.
         removedItem->deleteLater();
         eventIds_.remove(event_id);
+
+        // Update the room list with a view of the last message after
+        // all events have been processed.
+        QTimer::singleShot(0, this, [this]() { notifyForLastEvent(); });
 }
 
 QWidget *