sforkowany z mirror/soapbox
Notifications: import target account during streaming event for Move notification
rodzic
a973cfbd60
commit
c5fa16f581
|
@ -56,13 +56,20 @@ export function updateNotifications(notification, intlMessages, intlLocale) {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const showInColumn = getSettings(getState()).getIn(['notifications', 'shows', notification.type], true);
|
const showInColumn = getSettings(getState()).getIn(['notifications', 'shows', notification.type], true);
|
||||||
|
|
||||||
if (showInColumn) {
|
if (notification.account) {
|
||||||
dispatch(importFetchedAccount(notification.account));
|
dispatch(importFetchedAccount(notification.account));
|
||||||
|
}
|
||||||
|
|
||||||
if (notification.status) {
|
// Used by Move notification
|
||||||
dispatch(importFetchedStatus(notification.status));
|
if (notification.target) {
|
||||||
}
|
dispatch(importFetchedAccount(notification.target));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (notification.status) {
|
||||||
|
dispatch(importFetchedStatus(notification.status));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (showInColumn) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: NOTIFICATIONS_UPDATE,
|
type: NOTIFICATIONS_UPDATE,
|
||||||
notification,
|
notification,
|
||||||
|
|
Ładowanie…
Reference in New Issue