def METHOD_NAME(sender, invitation, user, **kwargs):
    mark_invitation_notification_as_read(user, invitation)
    WorkspaceInvitationAcceptedNotificationType.create_invitation_accepted_notification(
        user, invitation
    )