Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Status transition from "next" after route change. #37

Open
jevgeniv opened this issue Jun 16, 2016 · 0 comments
Open

Status transition from "next" after route change. #37

jevgeniv opened this issue Jun 16, 2016 · 0 comments

Comments

@jevgeniv
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant