mirror of
https://github.com/tloncorp/landscape.git
synced 2024-12-19 23:01:46 +03:00
Merge pull request #264 from tloncorp/hm/restore-dms
notifications: remove filtering of dms
This commit is contained in:
commit
3d4f22632e
@ -50,15 +50,10 @@ export const useNotifications = (mentionsOnly = false) => {
|
||||
};
|
||||
}
|
||||
|
||||
const notDmsFromGroupsDesk = (s: Skein) =>
|
||||
!((isDM(s.top.rope) || isClub(s.top.rope)) && isGroups(s.top.rope));
|
||||
|
||||
const unreads = skeins
|
||||
.filter((s) => s.unread)
|
||||
.filter((s) => notDmsFromGroupsDesk(s));
|
||||
const filteredSkeins = skeins
|
||||
.filter((s) => (mentionsOnly ? isMention(s.top) : s))
|
||||
.filter((s) => notDmsFromGroupsDesk(s));
|
||||
const unreads = skeins.filter((s) => s.unread);
|
||||
const filteredSkeins = skeins.filter((s) =>
|
||||
mentionsOnly ? isMention(s.top) : s
|
||||
);
|
||||
|
||||
return {
|
||||
notifications: groupSkeinsByDate(filteredSkeins),
|
||||
|
Loading…
Reference in New Issue
Block a user