This commit is contained in:
mgabdev
2020-04-06 21:53:23 -04:00
parent e485e2f955
commit b5e3c2a94f
58 changed files with 482 additions and 229 deletions

View File

@@ -64,13 +64,13 @@ const expandNormalizedNotifications = (state, notifications, next) => {
let items = ImmutableList()
// : todo filter notiications here:
console.log("notifications:", notificationss)
notifications.forEach((n) => {
const notification = notificationToMap(n)
const statusId = notification.get('status')
const type = notification.get('type')
switch (type) {
case 'follow': {
follows = follows.set(follows.size, notification)
@@ -131,6 +131,8 @@ const expandNormalizedNotifications = (state, notifications, next) => {
}
}
console.log("final items: ", items)
return state.withMutations(mutable => {
if (!items.isEmpty()) {
mutable.update('items', list => {

View File

@@ -47,6 +47,8 @@ const initialState = ImmutableMap({
// : todo : put all notification settings actually IN settings
quickFilter: ImmutableMap({
active: 'all',
onlyVerifed: false,
onlyFollowing: false,
}),
}),