class UserStateUpdater

Methods

subscribe(Dispatcher $events)

No description

whenPostWasDeleted(Deleted $event)

<p>Updates a user state relative to a discussion.</p>

Details

subscribe(Dispatcher $events)

Parameters

Dispatcher $events

whenPostWasDeleted(Deleted $event)

<p>Updates a user state relative to a discussion.</p>

<p>If user A read a discussion all the way to post number N, and X last posts were deleted, then we need to update user A's read status to the new N-X post number so that they get notified by new posts.</p>

Parameters

Deleted $event