Fix TypeError on follow notification (#6950)

`notification.status` may not be present, e.g. follow notification.
This commit is contained in:
unarist 2018-03-29 19:59:12 +09:00 committed by Eugen Rochko
parent 9ed5eebd7c
commit 41452e8302

View File

@ -43,7 +43,9 @@ export function updateNotifications(notification, intlMessages, intlLocale) {
const playSound = getState().getIn(['settings', 'notifications', 'sounds', notification.type], true); const playSound = getState().getIn(['settings', 'notifications', 'sounds', notification.type], true);
dispatch(importFetchedAccount(notification.account)); dispatch(importFetchedAccount(notification.account));
dispatch(importFetchedStatus(notification.status)); if (notification.status) {
dispatch(importFetchedStatus(notification.status));
}
dispatch({ dispatch({
type: NOTIFICATIONS_UPDATE, type: NOTIFICATIONS_UPDATE,