Update ui/src/nav/notifications/Notification.tsx

Co-authored-by: tomholford <16504501+tomholford@users.noreply.github.com>
This commit is contained in:
james acklin 2023-01-19 10:52:02 -05:00 committed by GitHub
parent 57a98606cb
commit 916080d37a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,11 +28,13 @@ function makePrettyTime(date: Date) {
function getNotificationType(rope: Rope): NotificationType {
if (
rope.thread.endsWith('/channel/edit') ||
rope.thread.endsWith('/channel/add') ||
rope.thread.endsWith('/channel/del') ||
rope.thread.endsWith('/joins') ||
rope.thread.endsWith('/leaves')
[
'/channel/edit',
'/channel/add',
'/channel/del',
'/joins',
'/leaves'
].some((thread) => rope.thread.endsWith(thread))
) {
return 'group-meta';
}