make mts reactor to message deletions
This commit is contained in:
parent
d3cc992d3e
commit
ab282235b5
@ -27,3 +27,7 @@ bool MessageTimeSort::onEvent(const Message::Events::MessageUpdated& e) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool MessageTimeSort::onEvent(const Message::Events::MessageDestory& e) {
|
||||||
|
_to_sort.emplace(e.e.registry());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
@ -19,5 +19,6 @@ class MessageTimeSort : public RegistryMessageModelEventI {
|
|||||||
protected: // mm
|
protected: // mm
|
||||||
bool onEvent(const Message::Events::MessageConstruct& e) override;
|
bool onEvent(const Message::Events::MessageConstruct& e) override;
|
||||||
bool onEvent(const Message::Events::MessageUpdated& e) override;
|
bool onEvent(const Message::Events::MessageUpdated& e) override;
|
||||||
|
bool onEvent(const Message::Events::MessageDestory& e) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user