mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Update the room list after a redacted event has been removed
fixes #286
This commit is contained in:
parent
3afc76dbaa
commit
33a8628059
2 changed files with 4 additions and 1 deletions
1
Makefile
1
Makefile
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue