From 7f57fd7bfdb9cc1b6ddf014b2e5295138bedef88 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Fri, 4 Jun 2021 14:49:22 +1000 Subject: [PATCH] notifications: fix description --- pkg/interface/src/logic/lib/hark.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/interface/src/logic/lib/hark.ts b/pkg/interface/src/logic/lib/hark.ts index dd6aaafd1..1faaf8ae1 100644 --- a/pkg/interface/src/logic/lib/hark.ts +++ b/pkg/interface/src/logic/lib/hark.ts @@ -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) {