Update the room list after a redacted event has been removed

fixes #286
This commit is contained in:
Konstantinos Sideris 2018-04-03 10:24:35 +03:00
parent 3afc76dbaa
commit 33a8628059
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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 *