Set to 0 unread fire notifications on delete

This commit is contained in:
Vicente J. Ruiz Jurado 2018-08-03 09:08:03 +02:00
parent add46379bd
commit 0b50a90efb

View file

@ -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;
}