Filter notifications by content prefs
This commit is contained in:
@@ -545,6 +545,12 @@ export class NotificationsFeedModel {
|
|||||||
): Promise<NotificationsFeedItemModel[]> {
|
): Promise<NotificationsFeedItemModel[]> {
|
||||||
const promises = []
|
const promises = []
|
||||||
const itemModels: NotificationsFeedItemModel[] = []
|
const itemModels: NotificationsFeedItemModel[] = []
|
||||||
|
items = items.filter(item => {
|
||||||
|
return (
|
||||||
|
this.rootStore.preferences.getLabelPreference(item.labels).pref !==
|
||||||
|
'hide'
|
||||||
|
)
|
||||||
|
})
|
||||||
for (const item of groupNotifications(items)) {
|
for (const item of groupNotifications(items)) {
|
||||||
const itemModel = new NotificationsFeedItemModel(
|
const itemModel = new NotificationsFeedItemModel(
|
||||||
this.rootStore,
|
this.rootStore,
|
||||||
|
|||||||
Reference in New Issue
Block a user