Skip to content
Snippets Groups Projects
Commit 33a86280 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Update the room list after a redacted event has been removed

fixes #286
parent 3afc76db
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@
debug:
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1
@cmake --build build
@cp build/compile_commands.json .
ci:
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
......
......@@ -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 *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment