Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

498 B
Raw Blame
import type { SpaceNotification } from "services/space";

export const notificationGroupKey = (notification: SpaceNotification) =>
    `${notification.kind}:${
        notification.kind == "post_like" || notification.kind == "comment"
            ? notification.postId
            : notification.kind == "comment_reaction"
              ? notification.commentId
              : notification.kind == "comment_reply"
                ? notification.replyToId
                : notification.id
    }`;