-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(notification): consolidate notification state into single type
Doing so simplifies passing around state between notification.lua (which owns the state) and notification/model.lua (which manages/modifies the state). It also means that model.lua can directly modify state, rather using a weird ad hoc API to get around levels of indirection. This commit primarily exists as a snapshot before I introduce support for maintaining notification history.
- Loading branch information
Showing
2 changed files
with
67 additions
and
52 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