export const NOTIFICATIONS_SET_VISIBILITY = 'NOTIFICATIONS_SET_VISIBILITY';
-
export const NOTIFICATIONS_MARK_AS_READ = 'NOTIFICATIONS_MARK_AS_READ';
export const NOTIFICATIONS_SET_BROWSER_SUPPORT = 'NOTIFICATIONS_SET_BROWSER_SUPPORT';
const excludeTypesFromFilter = filter => {
- const allTypes = ImmutableList(['follow', 'follow_request', 'favourite', 'reblog', 'mention', 'poll']);
+ const allTypes = ImmutableList([
+ 'follow',
+ 'follow_request',
+ 'favourite',
+ 'reblog',
+ 'mention',
+ 'poll',
+ 'status',
+ 'update',
+ ]);
+
return allTypes.filterNot(item => item === filter).toJS();
};
/>
);
}
+ case 'update':
+ return (
+ <FormattedMessage
+ id='notification.update'
+ defaultMessage='{name} edited a post'
+ values={{ name: link }}
+ />
+ );
}
return null;
}
case 'status':
iconId = 'bell';
break;
+ case 'update':
+ iconId = 'pencil';
+ break;
};
return !type ? null : (
<PillBarButton prefix='notifications' settings={settings} settingPath={['sounds', 'status']} onChange={onChange} label={soundStr} />
</div>
</div>
+
+ <div role='group' aria-labelledby='notifications-update'>
+ <span id='notifications-status' className='column-settings__section'><FormattedMessage id='notifications.column_settings.update' defaultMessage='Edits:' /></span>
+
+ <div className='column-settings__pillbar'>
+ <PillBarButton disabled={browserPermission === 'denied'} prefix='notifications_desktop' settings={settings} settingPath={['alerts', 'update']} onChange={onChange} label={alertStr} />
+ {showPushSettings && <PillBarButton prefix='notifications_push' settings={pushSettings} settingPath={['alerts', 'update']} onChange={this.onPushChange} label={pushStr} />}
+ <PillBarButton prefix='notifications' settings={settings} settingPath={['shows', 'update']} onChange={onChange} label={showStr} />
+ <PillBarButton prefix='notifications' settings={settings} settingPath={['sounds', 'update']} onChange={onChange} label={soundStr} />
+ </div>
+ </div>
</div>
);
}
unread={this.props.unread}
/>
);
+ case 'update':
+ return (
+ <StatusContainer
+ containerId={notification.get('id')}
+ hidden={hidden}
+ id={notification.get('status')}
+ account={notification.get('account')}
+ prepend='update'
+ muted
+ notification={notification}
+ onMoveDown={onMoveDown}
+ onMoveUp={onMoveUp}
+ onMention={onMention}
+ getScrollPosition={getScrollPosition}
+ updateScrollBottom={updateScrollBottom}
+ cachedMediaWidth={this.props.cachedMediaWidth}
+ cacheMediaWidth={this.props.cacheMediaWidth}
+ onUnmount={this.props.onUnmount}
+ withDismiss
+ unread={this.props.unread}
+ />
+ );
default:
return null;
}
mention: false,
poll: false,
status: false,
+ update: false,
}),
quickFilter: ImmutableMap({
mention: true,
poll: true,
status: true,
+ update: true,
}),
sounds: ImmutableMap({
mention: true,
poll: true,
status: true,
+ update: true,
}),
}),