User Card Content fixes and updates

This commit is contained in:
HJ 2018-12-26 09:19:25 +00:00 committed by Shpuld Shpludson
parent 0ad837846a
commit fa8ecb1c39
3 changed files with 109 additions and 56 deletions

View file

@ -27,6 +27,7 @@ export const defaultState = {
maxId: 0,
minId: Number.POSITIVE_INFINITY,
data: [],
idStore: {},
error: false
},
favorites: new Set(),
@ -307,6 +308,7 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot
}
state.notifications.data.push(result)
state.notifications.idStore[notification.id] = result
if ('Notification' in window && window.Notification.permission === 'granted') {
const title = action.user.name