Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply modifying entries to the queue
Imagine the following scenario: * An editor posts an entry * The user gets a nag with 1 new entry * The editor deletes the just-added entry * The entry is deleted, but since the queue isn't touched, the user still sees the same message. In this commit we apply all new modifying (update/delete) entries to the queue. If we get a delete entry for an entry in the queue, we remove it from the queue. If we get an update entry, we just update the html of the entry in the queue. Both of these trigger a re-render of the fixed nag and it's always correct.
- Loading branch information
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters