launch: fix group notification display
Fixes urbit/landscape#720
Fixes urbit/landscape#656
@@ -31,6 +31,6 @@ export function getNotificationCount(
): number {
const unread = unreads.graph?.[path] || {};
return Object.keys(unread)
- .map(index => unread[index]?.notifications || 0)
+ .map(index => unread[index]?.notifications?.length || 0)
.reduce(f.add, 0);
}
