Merge pull request #4984 from urbit/lf/web-note-ref

notifications: fix description
This commit is contained in:
matildepark 2021-06-04 00:54:13 -04:00 committed by GitHub
commit 638eed8d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ export function describeNotification(notification: IndexedNotification) {
}
switch (idx.description) {
case 'post':
return singleAuthor ? 'replied to you' : 'Your post received replies';
return 'Your post received replies in';
case 'link':
return `New link${plural ? 's' : ''} in`;
case 'comment':
@ -107,14 +107,13 @@ export function describeNotification(notification: IndexedNotification) {
case 'edit-note':
return `updated ${pluralize('note', plural)} in`;
case 'mention':
return singleAuthor ? 'mentioned you in' : 'You were mentioned in';
return 'You were mentioned in';
case 'message':
if (isDm) {
return 'messaged you';
}
return `New message${plural ? 's' : ''} in`;
default:
return idx.description;
default: return idx.description;
}
}
if ('group' in notification.index) {