Mastodon: hide notifications counter

v1.x.x
Alex Gleason 2021-09-20 13:00:24 -05:00
rodzic 1dad6dce61
commit c1ed8ed16f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -56,7 +56,7 @@ const notificationToMap = notification => ImmutableMap({
const isValid = notification => Boolean(notification.account.id); const isValid = notification => Boolean(notification.account.id);
const countUnseen = notifications => notifications.reduce((acc, cur) => const countUnseen = notifications => notifications.reduce((acc, cur) =>
get(cur, ['pleroma', 'is_seen'], false) === false ? acc + 1 : acc, 0); get(cur, ['pleroma', 'is_seen'], true) === false ? acc + 1 : acc, 0);
const normalizeNotification = (state, notification) => { const normalizeNotification = (state, notification) => {
const top = state.get('top'); const top = state.get('top');