mirror of
https://github.com/tloncorp/landscape.git
synced 2025-01-06 08:05:02 +03:00
Update ui/src/nav/notifications/Notification.tsx
Co-authored-by: tomholford <16504501+tomholford@users.noreply.github.com>
This commit is contained in:
parent
57a98606cb
commit
916080d37a
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user