Skip to content

Commit 93b5be6

Browse files
authored
Drop transitionary code in mark-unread
1 parent 8daf6b8 commit 93b5be6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

source/features/mark-unread.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,12 @@ function getNotification(notification) {
121121
return item;
122122
}
123123

124-
// Already on L17. Only needed here to fix pre-existing unread notifications. Remove in 2018.
125-
const clippedParticipants = participants.slice(0, 3);
126-
127-
const usernames = clippedParticipants
124+
const usernames = participants
128125
.map(participant => participant.username)
129126
.join(' and ')
130127
.replace(/ and (.+) and/, ', $1, and'); // 3 people only: A, B, and C
131128

132-
const avatars = clippedParticipants.map(participant =>
129+
const avatars = participants.map(participant =>
133130
<a href={`/${participant.username}`} class="avatar">
134131
<img alt={`@${participant.username}`} height="20" src={participant.avatar} width="20"/>
135132
</a>

0 commit comments

Comments
 (0)