Set to 0 unread fire notifications on delete
This commit is contained in:
parent
add46379bd
commit
0b50a90efb
1 changed files with 4 additions and 0 deletions
|
|
@ -17,5 +17,9 @@ AppState appReducer(AppState state, action) {
|
|||
return state.copyWith(
|
||||
fireNotificationsUnread: state.fireNotificationsUnread - 1);
|
||||
|
||||
if (action is DeleteAllFireNotificationAction)
|
||||
return state.copyWith(
|
||||
fireNotificationsUnread: 0);
|
||||
|
||||
return state;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue