Keeps the state a reply's UI was left in, or forgets it when state is null.
null
The reply's id.
The state to keep, as plain Kotlin values.