e0ipso/message-center

Status transition from "next" after route change.

Opened this issue · 0 comments

Currently when a next message is added and route is changed, the new status becomes unseen.
Is there any design-driven reason for that? Could the state be changed to shown instead? We are showing the message in the new state anyway, aren't we?

My use-case is this. State A adds next message "ab" and triggers transition to state B. While at state B, some new messages are added with status shown. Now at some point (on user action) I want to clear all showed messages, including those coming from previous state (such as "abc"). But since "abc" is "unseen", removeShown() cannot be used for that.

I know I could call markShown() just before removeShown() for this case, but that looks more like a workaround to me.