Filter notifications by content prefs

This commit is contained in:
Paul Frazee
2023-04-12 17:39:34 -07:00
parent 8e03e6a105
commit c7c5eb9e99
+6
View File
@@ -545,6 +545,12 @@ export class NotificationsFeedModel {
): Promise<NotificationsFeedItemModel[]> {
const promises = []
const itemModels: NotificationsFeedItemModel[] = []
items = items.filter(item => {
return (
this.rootStore.preferences.getLabelPreference(item.labels).pref !==
'hide'
)
})
for (const item of groupNotifications(items)) {
const itemModel = new NotificationsFeedItemModel(
this.rootStore,