make mts reactor to message deletions

This commit is contained in:
Green Sky 2024-01-25 11:49:29 +01:00
parent d3cc992d3e
commit ab282235b5
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View File

@ -27,3 +27,7 @@ bool MessageTimeSort::onEvent(const Message::Events::MessageUpdated& e) {
return false;
}
bool MessageTimeSort::onEvent(const Message::Events::MessageDestory& e) {
_to_sort.emplace(e.e.registry());
return false;
}

View File

@ -19,5 +19,6 @@ class MessageTimeSort : public RegistryMessageModelEventI {
protected: // mm
bool onEvent(const Message::Events::MessageConstruct& e) override;
bool onEvent(const Message::Events::MessageUpdated& e) override;
bool onEvent(const Message::Events::MessageDestory& e) override;
};